Twitter button breaks after browsing pages


(Ricardo Viteri) #1

Hello,

I added this code (twitter button) via admin -> customize -> Text Content -> Top of the Pages

    <a href="https://twitter.com/BecarioSENESCYT" class="twitter-follow-button" data-show-count="true" data-lang="es">Seguir a @BecarioSENESCYT</a>

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

however after browsing around categories and posts it goes from this:

to this:

This happens when you open a discussion.

How can I fix this?

Thanks.


(Ricardo Viteri) #2

@codinghorror, @sam can you guys help me on this?

Thanks.


(Jeff Atwood) #3

I don’t know. Can you sign up for a plan at

https://payments.discourse.org/buy/

? :wink:

In all seriousness, remember that Discourse is a single page JavaScript app. Stuff designed around the premise of traditional html page loads will not work.


(Ricardo Viteri) #4

Can someone help me… I really need this to work :slight_smile: