I am trying to place the facebook like, the goole+ and twitter follow button in the header of my website. While I have successfully placed the code/images at the desired location, the buttons have to reload every time I change sites while browsing through my website. The website is wafflepantry.com and I have a custom theme. I would like them to be statics like my store logo or the SSL security image while browsing my sites.
I have added the necessary codes of each social media site into the header.tpl of my custom theme. I have attached the whole header.tpl, but here is also just the code I added:
Code: Select all
<!-- Facebook Like button START-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://www.facebook.com/pages/Wafflepantrycom/1398343833743698" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
<!-- Facebook Like button END-->
<!-- Twitter+ Follow button START-->
<a href="https://twitter.com/WafflePantry" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @WafflePantry</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.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!-- Twitter+ Follow button END-->
<!-- Google+ Follow button START-->
<div class="g-plusone" data-annotation="none"></div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<!-- Google+ Follow button END-->