Skip to main content

Default face tweet, without the URL

I need to have a page's default face tweet text not include the auto-appended URL of the current page. 

I altered the page's template to point to a new file that I created:

 

<div id="like_page">
<b>Do you like this page?</b>
{% include "like_page_no_twitter_url" %}
</div>

And make a file based on _like_page.html hoping to be able to insert the text I want, but the URL still gets appended.

How can I do this?

Official response from

Hi David,

The line responsible for what is tweeted is this, within the _like_page.html:

  <a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-text="{{ page.default_face_tweet_text | escape }}" data-via="{{ site.broadcaster.twitter_login }}">Tweet</a>

The variable page.default_face_tweet_text is no longer available without the URL that is automatically appended. If you feel like this would be a valuable feature, please submit it to our suggestion page here. In the interim, you are correct. You will need to hardcode your tweet text to replace:

{{ page.default_face_tweet_text | escape }}

As an alternative to adding a different one for each page, for example, you can look into using one of these variables instead:

{{ page.headline }}, {{ page.title }}, {{ page.excerpt }} or {{ page.blog_post.content_flip }}

Share this post

Showing 3 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.