WordPress.org

Ready to get started?Download WordPress

Forums

Social Login, Social Sharing, Social Commenting and more!
[resolved] [Plugin: Social Login, Sharing & Commenting] Display social share only on certain pages (4 posts)

  1. BramVanroy
    Member
    Posted 1 year ago #

    Hello

    Is it possible to display the social share on some pages and not on others? So possibly an option in the post-new.php in which you can disable/enable social share?

    Also, my main page contains all new posts (summaries of them with a read more link) and I would like to enable social share on this page as well, but per article. So, on one page you'd have multiple share icons, but all for different posts. Is that possible?

    Thank you.

    http://wordpress.org/extend/plugins/loginradius-for-wordpress/

  2. loginradius
    Member
    Plugin Author

    Posted 1 year ago #

    Hi BramVanroy - you can copy and paste the share widget code from your LoginRadius account to get social share on any page. We also provide lots of option in WP-admin, but you can customize social share and social counter.

    Please let us know if you have any other question.

    LoginRadius Team

  3. BramVanroy
    Member
    Posted 1 year ago #

    Hello

    Do I include the scripts as well, when the plugin itself is activated? So I have activated the plugin for usage on some pages, so the scripts are loaded (I suppose), even when I'm on the home page?

    What I did know: added code to the head:

    <?php
    if ( is_home() ) {
        $sCounter = '<script type="text/javascript">var islrsharing = false; var islrsocialcounter = true;</script> <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js"></script> <script type="text/javascript"> LoginRadius.util.ready(function () { $SC.Providers.Selected = ["Facebook Send","Facebook Like","LinkedIn Share","Google+ +1","Twitter Tweet"]; $S = $SC.Interface.simple; $S.isHorizontal = true; $S.countertype = "vertical"; $S.left = "50px"; $S.top = "50px"; $S.show("lrcounter_simplebox"); }); </script>';
    
    	echo $sCounter;
    }
    ?>

    Added HTML dynamically:
    $j("body.home #content article div.entry-content").prepend("<div class='lrcounter_simplebox'></div>");

    But as you can see here, the buttons don't show. The HTML is there <div class="lrcounter_simplebox"></div> in every entry-content but it's empty. Any thoughts?

  4. BramVanroy
    Member
    Posted 1 year ago #

    This is nót solved! Also, The code worked on Opera and even Opera Mini but not on any other browser.

    Now I just enabled it on feed, but I want the buttons to link to the article, not to the main page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic