Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Enable Linkedin in Social Sharing (ShareThis)
New Landing › How can we help? › Themeforest Theme Support › Dante › Enable Linkedin in Social Sharing (ShareThis)
- This topic has 32 replies, 8 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Dante
-
February 27, 2014 at 6:15 pm #52618
Hi,
I would add linkedin in my sharing networks in the blog post. I tried to change the code a bit file single.php, linkedin then appears in sharing networks but it shows me an error : “page not found” when I click it. See screenshot of the code used and the screenshot of error`<ul class=”social-icons”>
<li class=”sf-love”>
<div class=”comments-likes”>
<?php if (function_exists( ‘lip_love_it_link’ )) {
echo lip_love_it_link(get_the_ID(), ‘<i class=”ss-heart”></i>’, ‘<i class=”ss-heart”></i>’, false);
} ?>
</div>
</li>
<li class=”facebook”><a href=”https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>” class=”post_share_facebook” onclick=”javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600’);return false;”><i class=”fa-facebook”></i><i class=”fa-facebook”></i></a></li>
<li class=”twitter”><a href=”https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php echo urlencode(get_the_title()); ?>” onclick=”javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=260,width=600’);return false;” class=”product_share_twitter”><i class=”fa-twitter”></i><i class=”fa-twitter”></i></a></li>
<li class=”googleplus”><a href=”https://plus.google.com/share?url=<?php the_permalink(); ?>” onclick=”javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600’);return false;”><i class=”fa-google-plus”></i><i class=”fa-google-plus”></i></a></li>
<li class=”pinterest”><a href=”https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists(‘the_post_thumbnail’)) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_title(); ?>” onclick=”javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600’);return false;”><i class=”fa-pinterest”></i><i class=”fa-pinterest”></i></a></li>
<li class=”linkedin”><a href=”https://www.linkedin.com/sharer.php?u=<?php the_permalink(); ?>” class=”post_share_linkedin” onclick=”javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600’);return false;”><i class=”fa-linkedin”></i><i class=”fa-linkedin”></i></a></li>
<li class=”mail”><a href=”mailto:?subject=<?php the_title(); ?>&body=<?php echo strip_tags(get_the_excerpt()); ?> <?php the_permalink(); ?>” class=”product_share_email”><i class=”ss-mail”></i><i class=”ss-mail”></i></a></li>
</ul> `.
What is the right code added?I need your help please?
ThanksFebruary 27, 2014 at 6:17 pm #52620For more readability
<ul class="social-icons"> <li class="sf-love"> <div class="comments-likes"> <?php if (function_exists( 'lip_love_it_link' )) { echo lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false); } ?> </div> </li> <li class="facebook"><a href="https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li> <li class="twitter"><a href="https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php echo urlencode(get_the_title()); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=260,width=600');return false;" class="product_share_twitter"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li> <li class="googleplus"><a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li> <li class="pinterest"><a href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;"><i class="fa-pinterest"></i><i class="fa-pinterest"></i></a></li> <li class="linkedin"><a href="https://www.linkedin.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_linkedin" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li> <li class="mail"><a href="mailto:?subject=<?php the_title(); ?>&body=<?php echo strip_tags(get_the_excerpt()); ?> <?php the_permalink(); ?>" class="product_share_email"><i class="ss-mail"></i><i class="ss-mail"></i></a></li> </ul>
February 28, 2014 at 11:19 am #52856Hi
All looks fine to me, any chance you could post a link so I can take a look?
– Kyle
February 28, 2014 at 11:22 am #52859You missed the ‘rl’ off ‘url’
Try this code:
<ul class="social-icons"> <li class="sf-love"> <div class="comments-likes"> <?php if (function_exists( 'lip_love_it_link' )) { echo lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false); } ?> </div> </li> <li class="facebook"><a href="https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li> <li class="twitter"><a href="https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php echo urlencode(get_the_title()); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=260,width=600');return false;" class="product_share_twitter"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li> <li class="googleplus"><a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li> <li class="pinterest"><a href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;"><i class="fa-pinterest"></i><i class="fa-pinterest"></i></a></li> <li class="linkedin"><a href="https://www.linkedin.com/sharer.php?url=<?php the_permalink(); ?>" class="post_share_linkedin" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li> <li class="mail"><a href="mailto:?subject=<?php the_title(); ?>&body=<?php echo strip_tags(get_the_excerpt()); ?> <?php the_permalink(); ?>" class="product_share_email"><i class="ss-mail"></i><i class="ss-mail"></i></a></li> </ul>
February 28, 2014 at 5:16 pm #53027Hi kyle,
I tried your code but I still have the message “you will be redirected” and then “page not found”. See error on this page: http://vinoptimo.ravendt.net/pommard-et-volnay-devastes-par-les-orages/
Help me find the right code, please.Question two : why linkedin does not appear in the social sharing that I inserted in the header of my site?
Thank you in advance for your help.
March 3, 2014 at 8:57 am #53345Hi
It works for me (see screenshot)
As for the second issue, are you using the same code?
– Kyle
March 3, 2014 at 10:48 am #53422I just used the shortcode
[sf_social_share]
I added the options of the header ( see screenshot) to insert sharing networks in the header.
How can I added linkedin in the list social sharing in the header ?Help me please kyle.
thanks for advance !March 3, 2014 at 10:54 am #53431Hi
You need to add it in the shortcodes.php file which can be found in the ‘swift-framework’ folder. It’s around line 1136.
– Kyle
March 3, 2014 at 11:25 am #53449Big thank you kyle, it works. You helped me a lot
March 3, 2014 at 11:28 am #53451No problem!
March 3, 2014 at 11:34 am #53462Allow me to ask you another question kyle , how do I choose remove “DEMO-EXAMPLE PURPOSES (see screenshot)” which is in the list of languages?
And how to unpublish the languages that I do not want to have on the site? for example I would like to unpublish “german” and “spanish”.
help me kyle
March 3, 2014 at 11:37 am #53465Please open a new thread for this as it is a separate issue.
– Kyle
May 16, 2014 at 9:41 pm #75653Hi,
I would like to enable Linkedin in social sharing as seen on this thread, though I don’t know where to add the code. Could you help me with this?
Regards,
MaximeMay 19, 2014 at 7:35 am #75755You need to add this to single.php http://support.swiftideas.net/forums/topic/enable-linkedin-in-social-sharing-sharethis/#post-52859
– Kyle
May 21, 2014 at 7:48 pm #76654Is there a specific place in single.php where I need to add it? I tried to add it at the end of the file but I didn’t work.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.