Add a Linkedin button

Posted in: Newspaper
Post count: 40

Hi! I follow the Linkedin guide. I add it after the what’s app line.

The outcome is not perfect however. The button is blue without the symbol of linkedin and disappeared the what’s app button. But the link is correct

I think this link is not updated. Can you please send me the new updated link?

Thanks in advance

Post count: 22421

Hello,

The linked in solution provided will not work for the newspaper theme properly. Please add this code instead in td_module_single.php: http://screencast.com/t/nQ0Tj5O1

<a class="td-social-sharing-buttons td-social-linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=' . urlencode(esc_url(get_permalink())) . '&title=' . htmlspecialchars(urlencode(html_entity_decode($this->title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . '&source=' . urlencode(get_bloginfo('name')) . '" onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><i class="fa fa-linkedin"></i></a>

I added a font awesome linked in icon so you need to install and activate ‘font awesome 4 menus’ and then use this css code in the theme panel – custom css box:

.td-social-linkedin{
margin-left:8px;
background-color: 
#006699!important;;
}

Hope this helps.
Thank you!

Post count: 3

This worked perfectly for me, thank you so much for sharing it.

Post count: 40

Great! It works!
But why I have lost the what’s app button?
And what about the bottom of the post?
Is there any instruction for newspaper to add the linkedin button even there, please?

Post count: 22421

Hi,

The whatsapp button will not get overwritten. It only shows on the mobile version. If it disapeared, please check the code again and make sure you did not affect the whatsapp code.
Please retry the method as I have tested it again and works as expected. It does not affect any other social network: http://screencast.com/t/LUU4A55pwoL
As for the bottom sharing, you will find a similar code below that one if you scroll down the file. You can simply paste in the linkedin code there as well.

Thank you!

Post count: 40

Thank you. I confirm the method is ok!

Post count: 2

Why isn’t this standard? You gonna make us do this annoying step anytime we update the theme?!

Post count: 22421

Hi,
This is not standard at all. It is a customization. Normally the theme does not allow you to add extra social networks in it’s widget. This is a ‘hack’. If you do not want to hack the theme files, you can always use a plugin for the social icons that allows you to add other networks besides the ones the theme provides.
Thank you!

Post count: 2

It isn’t standard in your theme. But it should be. It’s a pretty common need and it should be standard.
It shouldn’t been supposed to have to hack this over and over each time we update de theme.
But that’s just my 2 cents.

Good job on the theme, besides this is pretty good.

Post count: 40

So, when we update the theme, if we added the linkedin button, do you recommend to save the older td_module_single.php ?

Post count: 22421

Hi,
You must look for the change log and the modified files for the new version. If the file is on the list and got modified, you need to re-apply the modification as keeping the old file will break the site. In newspaper 7 and 7.01 the file did not get modified so you can keep the old file. Please check these 2 links for a list of modified files in NP7 and 7.01:
http://tagdiv.com/td_deploy/Newspaper/changed_files_6.6_7.0.html
http://tagdiv.com/td_deploy/Newspaper/changed_files_7.0_7.0.1.html
Thank you!

Post count: 17

Hi – Do you have a Linked in button on the Social Counter. Please let me know as my blog is a professional blog with the maximum following on linkedin.

Regards

Nidhi

Post count: 22421

Hi,
Unfortunately there is no linked in button on the social counter. The implementation for another social network in the social counter will not be so easy to make as the solution provided here.
Thank you!

Post count: 17

Hi Bogdan – Thanks for your response. Can we expect a solution to this in the upcoming versions / patches / updates and if so by when?

Thanks

Post count: 22421

Hi,
I can’t say for sure as there is no official plan for it at the moment. However we are always looking to update and improve our themes so maybe in a future version we will be able to implement it, jut not at the moment.
Thank you!

Post count: 7

Hi Bogdan,

I try to use your hack, I not sure to have well understanding the method and I’d like to be sure.

Is it supposed to work when copying td_module_single.php modified file in the child theme folder, or we actually must modify the original file ?

Thanks for your answer and sorry for the double explanation.

Post count: 22421

Hi,
This will work from the child theme so you do not have to edit the original file. What I was mentioning above is that a child theme is not update proof. You still have to replace the file in the child theme if the main theme update will require replacing of the td_module_single.php file. (there is a list of modified files attached to the change log on themeforest for every update so you can inspect what files were changed. If td_module_single.php is on that list, then you need to replace it in the child theme as well and re-apply the modification)
I hope this helps.
Thanks.

Post count: 7

Hi Bogdan,

Thanks for you answer, it is very helpful.

I had doubt because in the newspaper td_module_single.php, there is a “default share buttons” section which has to be changed too.

Thanks again for the hack.

Post count: 60

Hi, we’d like to post our “vote” so you guys implement a LinkedIn (or more) buttons in a future theme update.
Regards!

Post count: 60

Hi again,
We’ve just done as instructed by Bogdan, however there are no changes, we’ve even deleted the Pinterest button, and it’s still there. Did the code move elsewhere?

Thanks!

Post count: 22421

Hi,

Well please check the file again as there are 2 sections of code that are identical. Scroll a bit further down and you will see another identical code. One is for the top sharing and one is for the bottom sharing. You could be altering one and checking the other. (I’ve done that a couple of times myself :))

Hope this helps.

Post count: 60

Hi, we got it working, however the Linkedin icon is not there:

Just saw the comment that “font awesome 4 menus” needed to be installed. All working now, thanks!

Post count: 22421

Hi,
The method specified in this thread requires font awesome 4 menus for the linked in icon to be present.
Install the plugin and check again.
Thank you!

Post count: 60

Thanks all good now, except for the mobile theme. Where can we edit the files for the mobile theme sharing options?:
Cheers!

Post count: 6535

Hi

If you’re using mobile theme plugin you need to edit td_module_single_mob.php file and modify the code for sharing buttons: http://screencast.com/t/OQG7Y0Ilf

Thanks!

Viewing 25 posts - 1 through 25 (of 27 total)
You must be logged in to reply to this topic.