Hi All,
I love the social sharing at the top of the post template is there anyway to add a linkedin share button instead of Pintrest?
Thanks
Josh
Hello,
The theme has no option to add a linkedin social button. you will need to edit the files to do it.
Please follow this topic to see how it can be done.
https://forum.tagdiv.com/search/whatsapp/ – https://forum.tagdiv.com/add-a-new-linkedin-button/
It seems it is a bit dofferent for the newspaper theme so read this one also: https://forum.tagdiv.com/topic/linkedin-button/
I hope it helps.
Thank you!
Thanks Bogdan,
That helps a lot I just have two issues.
1) The favicon is not appearing
2) I can seem to in line it with the others
http://new.teleread.com/fan-uses-wikipedia-edit-to-sneak-backstage-at-concert/
Hello,
Please make sure you followed every step of the example provided. Make sure you did not skip point B. Please check your code because i have tested it on my end and it works as expected. Make sure you copied all of the code from step one as well. Double check your modification as it should work fine if all the steps are followed correctly.
Thank you!
Hi Bogdan,
That did help,
I added code, replaced images and then added the css but still not have any luck.
Could you have a look
Thanks
Josh
Hello,
Please read this topic again and copy over the whole code. A div with the class of th-sp-linkedin is not being created on your end. Are you sure you copied all of the code?
https://forum.tagdiv.com/add-a-new-linkedin-button/
<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;"><div class="td-sp td-sp-linkedin"></div></a>
Double check it please as you do not have the correct elements at the moment.
Thank you!
-
This reply was modified 10 years by
Bogdan B..
This is the code from /Newspaper/includes/modules/td_module_single.php seems to be the same
$buffy .= '<div class="td-post-sharing td-post-sharing-top ' . $td_no_like . '">';
if (td_util::get_option('tds_top_social_show') != 'hide') {
$buffy .= '
<div class="td-default-sharing">
<i class="td-icon-facebook"></i><div class="td-social-but-text">' . __td('Share on Facebook', TD_THEME_NAME) . '</div>
title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . '&url=' . urlencode( esc_url( get_permalink() ) ) . '&via=' . urlencode( $twitter_user ? $twitter_user : get_bloginfo( 'name' ) ) . '" ><i class="td-icon-twitter"></i><div class="td-social-but-text">' . __td('Tweet on Twitter', TD_THEME_NAME) . '</div>
<i class="td-icon-googleplus"></i>
<i class="td-icon-pinterest"></i>
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;"><div class="td-sp td-sp-linkedin"></div>
</div>';
}
Its the same code as you have posted
Hi,
Something goes wrong on your end. The code does not get implemented corectly. You are missing the last part of the code. The one that creates the DIV element with the class of td-sp-linkedin.
Look how it is on my end: http://screencast.com/t/L9zckEbbwj and this is how it is on your end: http://screencast.com/t/j9zf2tBCuot.
Please send us an email at contact@tagdiv.com and provide wp-admin and FTP access so we can inspect what it is that is causing this. Also include a link to this topic.
Thank you.
