Subject: Addthis

Posted on: 28/10/2017 07:11pm
By: Anonymous

I want to use Addthis to place social media buttons on my pages, but haven't had any luck in getting the code to work in the pages I've tried. Does anyone know where I should add the javascript in the code to get the desired result?

Thanks,
Tom

Re: Addthis

Posted on: 29/10/2017 08:25am
By: Laugh

Depends where you want to place it. Most people tend to put the social buttons some where in the header so the button html code would go in the header.html file. The javascript could then either go in the header or footer.

Re: Addthis

Posted on: 29/10/2017 08:38am
By: Anonymous

My question is, which file should I place the code in so that people can like or share any story.

Re: Addthis

Posted on: 29/10/2017 02:35pm
By: Laugh

Just for stories you would probably want to modify just the storytext.thtml template file for the theme you are using. For example the denim theme the file would be found under /public_html/layout/denim/

Re: Addthis

Posted on: 29/10/2017 04:15pm
By: Anonymous

I ended up adding the first code to footer.thtml and the second to article.thtml. Worked like a charm. Thanks.

Tom

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=96644