Hi Jake,Admin CP -> Appearance -> Style Properties -> Header and Navigation -> Facebook Open Graph Logo
As I remember it can take a few days to work on Facebook.Hi Jake,
Yes, I setup there but still when I post thread on Facebook, it's showing XenForo's Default OG icon.
Browsers love to cache those images, so you might not see the new image in your browser if you have already bookmarked it.
Also, I often have to add a reference to the page head:
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER
Rich (BB code):<!DOCTYPE html> <html id="XenForo" class="Public {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'}"> <head> <meta charset="utf-8" /> <xen:if is="{$requestPaths.fullBasePath}"><base href="{$requestPaths.fullBasePath}" /></xen:if> <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title> <link rel="stylesheet" type="text/css" href="css.php?css=xenforo,form,public&style={xen:urlencode $_styleId}&d={$visitorStyle.last_modified_date}" /> <!--XenForo_Require:CSS--> <xen:include template="google_analytics" /> <xen:include template="page_container_js_head" /> <xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if> <xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if> <LINK REL="SHORTCUT ICON" HREF="http://xenforo.com/favicon.ico"> </head> <body>
Change the HREF appropriately.
<link rel="icon" href="/favicon.ico?v=2" />
Can't you use href="{$xenOptions.boardUrl}/favicon.ico" or href="{xen:link favicon.ico}" maybe ?@Jake Bunce, is it possible to have non-hard-coded URL for favicon.ico?
How to call XenForo URL with helper? {xen:helper fullurl,??
Favicon has changed a lot since 2010.
It's now a manifest file and your best using a favicon generator to understand what now goes into one.
https://realfavicongenerator.net
Is the one i used and makes lovely high Res images for all devices
Doesn't look too good for xenforo:
https://realfavicongenerator.net/favicon_checker?protocol=http&site=xf2demo.xenforo.com/#.WM7bVhPygUE
I take these things with a pinch of salt
Great stuff, though it seems like the ?v= approach you have is not that reliable right? You could still update the ICO without changing the version and you could still change the version without the ICO having been updated. Would it not be easier for Admin to be able to specify the version in a text field on that add-on config page?And since I wanted to do this for my own site for the benefits a plugin gives, I've posted it on my site here for download
Fair point, I've added a field for a positive integer. If it's not 1, it will be used instead.Great stuff, though it seems like the ?v= approach you have is not that reliable right? You could still update the ICO without changing the version and you could still change the version without the ICO having been updated. Would it not be easier for Admin to be able to specify the version in a text field on that add-on config page?
From there it is probably quite easy to add header colour functionality to that add-on.
One could even make a generic add-on to inject a provided HTML text in the HTML header, end of story.
We use essential cookies to make this site work, and optional cookies to enhance your experience.