First time here? Check out the FAQ!
0

How to enable Addthis sharing content?
 

Askbot by default support sharing for major social networks like facebook and Twitter. However, I would like to use AddThis.com which is support more networks and support sharing counts per social network.

Also Addthis offer Smart Layers which is really awesome, and can boost traffic and views for your Q/A site.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Mustafa's avatar
48
Mustafa
asked 11 years ago

Comments

see more comments

1 Answer

2

Solution is the following

First, register with AddThis.com and chose the sharing services you like For example "Share Buttons" and copy the JS code.

Now open this template using any editor

~/askbot/templates/question/share_buttons.html

remove the code in this file or comment the code with

<!-- orginal code Start
orginal code end -->

And insert your AddThis JS code in this file, save file, upload (using FTP) and replace.

Note: the option "Track when users share by copying your URL" will break your title in browsers and google search, so you have to disable it, maybe @Evgeny could help with this.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Mustafa's avatar
48
Mustafa
answered 11 years ago
link

Comments

see more comments