WordPress.org

Ready to get started?Download WordPress

Forums

Social Login
[resolved] Showing Social Login everywhere (6 posts)

  1. conselhosquesedao
    Member
    Posted 1 year ago #

    If user has not logged in "Social login" is shown in home.php, multi-post, single post.

    I'd like to restrict plugin to be shown only in one specific page or perhaps restrict to every page but one.

    Is that possible?

    http://wordpress.org/extend/plugins/oa-social-login/

  2. DaveTheKnave
    Member
    Posted 1 year ago #

    If you're using the Social Login widgets in the sidebar, you can restrict to certain pages by using the Dynamic Widgets plugin.

    If you want to put the Social Login widget within a pages content, you may be able to use the shortcode....

    [oa_social_login]

    If that doesn't work, go to a page where your Social Login form is displayed and then go to page source and copy the forms html and insert into a page that way.

  3. conselhosquesedao
    Member
    Posted 1 year ago #

    I added a conditional situation in Page restrict plugin:

    if is restricted then oa_social_login

    And it worked!

    Ty!

  4. Claude
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you very much for this information!

  5. SatriaVie
    Member
    Posted 1 year ago #

    @conselhosquesedao

    Can I ask where you put the code in page restrict?

  6. conselhosquesedao
    Member
    Posted 1 year ago #

    Satriavie,

    pagerestrict.php

    function pr_page_restrict ( $pr_page_content )

    bellow: $pr_page_content = str_replace('login', 'login', $pr_page_content);
    endif;
    endif;

    I added:

    if ( $is_restricted == 1 ) {
    do_action('oa_social_login');
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.