WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Social Login & Social Sharing by Janrain] Only using the widget at comments when not lo

[Resolved] [Plugin: Social Login & Social Sharing by Janrain] Only using the widget at comments when not lo

Viewing 1 replies (of 1 total)
  • I don’t think that can be done via the widget, but you can do it via short code.

    Change all your settings in the Dashboard so that the social login link isn’t visible on the page. Remove the Sign-In widget from your toolbars and select “None” in Login links for comments.

    Then, put the following code in your .php files where you want the sign-in widget to appear (so, header.php, comments.php, etc). Note the use of the [rpxnotuser][/rpxnotuser] short code… this means that the rpxlogin experience will only appear when the user is not logged in to the site.

    <?php
    echo do_shortcode('[rpxnotuser][rpxlogin prompt="Log in with your favorite identity provider" style="large" autohide="false" datamode="false"][/rpxnotuser]');
    ?>

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Social Login & Social Sharing by Janrain] Only using the widget at comments when not lo’ is closed to new replies.