Support » Plugin: Premium Social Login with Social Data Integration (Paid) » [Plugin: Social Login, Sharing & Commenting] Display social share only on certain pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author loginradius

    (@loginradius)

    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

    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?

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Social Login, Sharing & Commenting] Display social share only on certain pages’ is closed to new replies.