Changing display of prefixes when sharing to social networks

Trombones13

Well-known member
Is there a way to change how the prefix displays when sharing a thread to social networks? Rather than it displaying "Prefix - Title" (see below), can I have it display with a colon after the prefix, i.e. "Nostalgia 90: Album #2...?" If so, where do I go to edit that?

voice-xenforo-social-network-prefix-display.webp

Thanks!
 

Attachments

  • voice-xenforo-social-network-prefix-display.webp
    voice-xenforo-social-network-prefix-display.webp
    27 KB · Views: 3
Admin CP -> Appearance -> Templates -> share_page

Add the red code:

Rich (BB 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>
 
Admin CP -> Appearance -> Templates -> share_page

Add the red code:

Rich (BB 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! :)
 
Top Bottom