Add linkedin share button
Permalink Browser Info Environment
My client wants to add the linkedin share button next to the tweet and facebook share buttons, but it isn't a choice. (We are using the original version of ProBlog.) Linkedin has a share code generator that I can add to each individual blog page as an html block, but it ends up on a line by itself below the other share line and tags and categories line. I can't put it in the pb_post master page, b/c the code changes for each blog. Can anyone tell me how to add this function as a global share choice with the tweet and fb buttons? Thanks!
Type: | Discussion |
---|---|
Status: | New |
First, I had to find which view.php file I needed to open. In my case it was the view.php in the /ProBlog/problog_list/templates/micro_blog folder.
In this file there is a section where the social media icons are located. I just pasted in the code you'll see in the attachment. I inserted the code under the Facebook code so it appeared third in the list. So in may case, I have to keep the option to show the Facebook icon selected or both of them will go away. Which works for us!
Also, in the Head section of the header.php file for the theme you're using, you'll also need to insert the ShareThis script, which is below:
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-5b17d655-db39-25d3-cfb3-4926e217f50d", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
Hope this helps!