Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 11:25 am EST
Geeklog Forums
Addthis
Tom Terry
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
Thanks,
Tom
13
7
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
One of the Geeklog Core Developers.
One of the Geeklog Core Developers.
11
7
Quote
Tom Terry
Anonymous
My question is, which file should I place the code in so that people can like or share any story.
10
12
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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/
One of the Geeklog Core Developers.
One of the Geeklog Core Developers.
11
9
Quote
Tom Terry
Anonymous
I ended up adding the first code to footer.thtml and the second to article.thtml. Worked like a charm. Thanks.
Tom
Tom
10
10
Quote
All times are EST. The time is now 11:25 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content