WebSite X5Help Center

 
Jon H.
Jon H.
User

Adding Twitter "Follow" Button Using Website X5 Evolution 8  en

Автор: Jon H.
Просмотрено 1901, Подписчики 1, Размещенный 0  

Dear Forums,

I am using a rather outdated version of Website X5 (Evolution 8) on Windows XP Pro to maintain the following website:

www.dawnsgetaways.com

I would like to add a "Follow @dawnsgetaways" Twitter button to the home page.

I have added an HTML Code area to the bottom of the home page, and cut and pasted the following code from Twitter's support site:

<a href="https://twitter.com/dawnsgetaways" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @dawnsgetaways</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs[removed].insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

However, when I go to preview the result, I see only a standard hyperlink saying "Follow @dawnsgetways" where I was expecting to see the Twitter button.

So I have two questions:

1. Is it valid to expect the button to work in preview mode i.e. do I have to go ahead and upload to the webserver in order to make the HTML and Javascript work?

2. If it is, then what am I doing wrong i.e. is it valid to cut and paste the HTML and the Javascript into a single box within Website X5?

For information, I have tried using the Page Properties button to place the script code in the Head and the HTML in the Body, to no avail.

Any information and advice would be greatly appreciated.

Thank You,

Jon

Размещено
1 Ответы - 1 Корректно
Andre E
Andre E
Moderator
Лучший пользователь месяца EN

the code is correct and will show up correctly once uploaded.

You can add the code in an html object box. more is not neccesary.

Check out setting below in the html object to set a good height (about 20 or 25 should do fine) and remove the show scrollbar option.

Goodluck :)

Читать больше
Размещено От Andre E