• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Changing display of prefixes when sharing to social networks

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> share_page

Add the red code:

Code:
			<xen:if is="{$xenOptions.tweet.enabled}">
				<div class="tweet shareControl">
					<a href="https://twitter.com/share" class="twitter-share-button"
						data-count="horizontal"
						data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
						data-url="{$url}"
						{xen:if {$thread.title}, 'data-text="{xen:helper threadPrefix, $thread, escaped, ': '}{$thread.title}"'}
						{xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
						{xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
				</div>
			</xen:if>
 

Trombones13

Well-known member
#3
Admin CP -> Appearance -> Templates -> share_page

Add the red code:

Code:
<xen:if is="{$xenOptions.tweet.enabled}">
<div class="tweet shareControl">
<a href="https://twitter.com/share" class="twitter-share-button"
data-count="horizontal"
data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
data-url="{$url}"
{xen:if {$thread.title}, 'data-text="{xen:helper threadPrefix, $thread, escaped, ': '}{$thread.title}"'}
{xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
{xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
</div>
</xen:if>
Thanks, Jake! :)