Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
xa_cas_index
template and add arg-imageUrl
param to the metadata
MACRO and pass in a link to a static image. That param is what is used to pass in an image source to the Core XF metadata_macros
template. xa_cas_index
template and add arg-imageUrl
param to the metadata
MACRO and pass in a link to a static image. That param is what is used to pass in an image source to the Core XF metadata_macros
template. <xf:macro template="metadata_macros" name="metadata"
arg-description="{$xf.options.xaCasMetaDescription}"
arg-canonicalUrl="{{ link('canonical:cas', null, {'page': $page > 1 ? $page : null}) }}"
arg-imageUrl="{{ link('https://forum.travmatik.com/zbroya-rinok.jpg') }}" />
<xf:macro name="metadata"
arg-siteName=""
arg-title=""
arg-description=""
arg-type=""
arg-shareUrl=""
arg-canonicalUrl=""
arg-imageUrl=""
arg-twitterCard="summary_large_image">
summary_large_image
via the arg-twitterCard
, so that you are only forcing that value when you are including an appropriately sized image, otherwise Twitter will reject it and no image will be displayed as it doesn't conform to their image size standard for their summary large image.arg-imageUrl
like you did for for CAS index, you can force the twitter card size via the arg-twitterCard
as shown below <xf:macro template="metadata_macros" name="metadata"
arg-description="{$xf.options.xaCasMetaDescription}"
arg-canonicalUrl="{{ link('canonical:cas', null, {'page': $page > 1 ? $page : null}) }}"
arg-imageUrl="{{ link('https://forum.travmatik.com/zbroya-rinok.jpg') }}"
arg-twitterCard="summary_large_image" />
You should NOT change default arg values in Core XF Macros. The default value is default for a valid reason (and is expected to be what XenForo sets the default value to be).
Instead, you should pass the valuesummary_large_image
via thearg-twitterCard
, so that you are only forcing that value when you are including an appropriately sized image, otherwise Twitter will reject it and no image will be displayed as it doesn't conform to their image size standard for their summary large image.
Just like adding the custom image url via thearg-imageUrl
like you did for for CAS index, you can force the twitter card size via thearg-twitterCard
as shown below
HTML:<xf:macro template="metadata_macros" name="metadata" arg-description="{$xf.options.xaCasMetaDescription}" arg-canonicalUrl="{{ link('canonical:cas', null, {'page': $page > 1 ? $page : null}) }}" arg-imageUrl="{{ link('https://forum.travmatik.com/zbroya-rinok.jpg') }}" arg-twitterCard="summary_large_image" />