Resource icon

XenForo 2 Styles Tweaks (use attachments for og:image & others) 1.0.3

No permission to download
Visible Branding
Additional Requirements
XenForo 2.1.x
This is a collection of several options related to XenForo meta tags and miscellaneous display tweaks. This is how, for example, we are using attachments for the og:image at Cameraderie photography forum.

After installing go into your XF Options page and look for "CinVin - Style Tweaks" to change your settings.

Unfurl Description Length
Enter the maximum length to use for the text of unfurled URLs. The default value is hard-coded in the bb_code_tag_url_unfurl template. Enter a new maxium length value here or leave it as 0 to use the XF default value from the template. (See thread 161444 at for reference.)

Use Post Attachment for OG:Image and use Twitter Card [meta tags og:image, og:image:height, og:image:width and twitter:card]
By default value of the og:image is the value entered for the Metadata logo URL in your style templates under Basic Options. When posting to social media like Twitter and Facebook using a post attachment image instead is usually preferred. Turn this option on to use try to use an attachment instead. Enabling this option will also include the meta tag twitter:card using the card type specified. If you are unsure what value to use then leave it at summary_large_image. If no attachment image is available to use then the default XF value will be used. (See Metadata logo URL in ACP.)

Twitter Site Name [meta tag twitter:site]
Enter a Twitter account name to include in the meta tags as the twitter:site value. This meta tag is required when specifying the Twitter Card to be certain types like summary_large_image. This is typically the same value you would have used for the Twitter Connected Accounts value. (See Twitter Card Tags for reference.)

Facebook App ID [meta tag fb:app_id]
Enter your Facebook Application ID. This is typically the same value you would have used for the Facebook Connected Accounts value. Having the Facebook Application ID is required in order to gather statistics with Facebook Insights. If you do not use/care about FB Insights then this value will not affect you if it is missing. XenForo will not add the meta tag back. (See thread 164982 at for reference.)

Page "Type" for Thread View [meta tag og:type]
The default Open Graph value for XenForo pages is "website" on all pages. Enter a different value, such as "article", to use on Thread View pages. Be sure the value you enter is valid and that you are absolutely sure you want to change it. This will be used on Thread View pages only, the rest of your XenForo pages will still use the XF default. Leave this blank to use the default XF value. A value of article or blog is required for use with Pinterest Rich Pins. (See Pinterest Article Pins for reference.)
First release
Last update
5.00 star(s) 1 ratings

Latest updates

  1. Now includes 'Publisher' & 'MainEntityOfPage' tags on thread view

    The [publisher] and [mainentityofpage] meta tags are now generated on the thread view pages See...
  2. Fixed Version Number, Changed Release Status

    This update is just to fix the add-on release number. With this I've also changed it from being...

Latest reviews

Amazing dude, exactly what i need <3 much love to you Kevin!
Top Bottom