XF 1.2 XenForo Logo in Twitter Cards

RoyalRumble

Active member
Hi there,

Does anyone know how to replace the XenForo logo here;

upload_2014-2-17_19-10-35.webp

... I thought I replaced every instance, I've searched and searched but no joy.

Any help appreciated :)
 
@Brogan don't you ever sleep? Thanks again for the speedy response.

No add on that I'm aware of (List of all add ons below)

The logo.og.png image was replaced a long time ago

Since noticing the XenForo logo on any forum link I put on twitter, and failing to find it to overwrite, I've tried adding twitter card tags to page container but even that isn't working.

Digital Point Ad Positioning
1.2.0

Notifications
1.6.2

Reputation System
1.9

Respollo
1.0

Separate Sticky & Normal Threads
1.0.0

XenForo Enhanced Search
1.0.3

[FreddysHouse] Signature Once
1.2.1
 
Last edited:
I just load up twitter, send a tweet as I always would but whenever I include a link from the forum, twitter automatically presents/formats it as the screenshot in my first post. They ascertain that information from the link I paste.

I believe they're called twitter cards;

https://dev.twitter.com/docs/cards

[EDIT] I'm viewing it on twitter. That screenshot is twitter.
 
Last edited:
Right, so it's to do with the API for that.

You can see where the image is defined here: https://dev.twitter.com/docs/cards/types/summary-card

What do you have set for <meta name="twitter:image" content=" ?

I had made no alteration until I noticed it was displaying the XenForo logo.

Since then, I've placed;



... in Page Container, which has resolved but would prefer to know where the XenForo logo is pulled from without the intervention as the default XF format was better, just needed to refresh the logo :)
 
Last edited:
I've put it here near the top of the template, is that ok?

<!DOCTYPE html><xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<xen:hook name="page_container_head">
<meta charset="utf-8" />
<meta name="twitter:image:src" content="/styles/default/xenforo/logo.og.png">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<xen:if is="{$isResponsive}">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</xen:if>
<xen:if is="{$requestPaths.fullBasePath}">
<base href="{$requestPaths.fullBasePath}" />
<script><xen:comment>/* Chrome bug and for Google cache */</xen:comment>
 
Top Bottom