New Landing How can we help? Themeforest Theme Support Dante Enable Linkedin in Social Sharing (ShareThis)

Viewing 15 posts - 1 through 15 (of 33 total)
  • Posted in: Dante
  • #52618
    Ravendt
    Member
    Post count: 29

    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=&lt;?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=&lt;?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=&lt;?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=&lt;?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=&lt;?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?
    Thanks

    #52620
    Ravendt
    Member
    Post count: 29

    For 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>				
    #52856
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    All looks fine to me, any chance you could post a link so I can take a look?

    – Kyle

    #52859
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You 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>	
    #53027
    Ravendt
    Member
    Post count: 29

    Hi 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.

    #53345
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    It works for me (see screenshot)

    As for the second issue, are you using the same code?

    – Kyle

    #53422
    Ravendt
    Member
    Post count: 29

    I 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 !

    #53431
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    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

    #53449
    Ravendt
    Member
    Post count: 29

    Big thank you kyle, it works. You helped me a lot

    #53451
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem!

    #53462
    Ravendt
    Member
    Post count: 29

    Allow 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

    #53465
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please open a new thread for this as it is a separate issue.

    – Kyle

    #75653
    maximearmstrong
    Member
    Post count: 73

    Hi,

    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,
    Maxime

    #75755
    Kyle – SUPPORT
    Moderator
    Post count: 35880
    #76654
    maximearmstrong
    Member
    Post count: 73

    Is 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.

Viewing 15 posts - 1 through 15 (of 33 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register