1. 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

Discussion in 'Styling and Customization Questions' started by Trombones13, Jun 4, 2012.

  1. Trombones13

    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?



    Attached Files:

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> share_page

    Add the red code:

    			<xen:if is="{$xenOptions.tweet.enabled}">
    				<div class="tweet shareControl">
    					<a href="https://twitter.com/share" class="twitter-share-button"
    						data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
    						{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>
    Trombones13 likes this.
  3. Trombones13

    Trombones13 Well-Known Member

    Thanks, Jake! :)

Share This Page