Skip to:
Content
Pages
Categories
Search
Top
Bottom

Page links on mobile redirect to home


  • dektech2018
    Participant

    @dektech2018

    Some of the page links (notifications, groups, messages) redirect to the home page on my mobile device. The links work in the desktop version.

    Found the problem.. Turned out to be the “Paid Memberships Pro – BuddyPress & BuddyBoss Add On” plugin. still working on a resolution.

Viewing 1 replies (of 1 total)

  • dektech2018
    Participant

    @dektech2018

    Fix: Deactivate the plugin, install “My Custom Functions” and paste this code into the PHP Inserter in the Dashboard settings menu.

    //Hide for non-logged-in users (public visitors)
    function bp_logged_out_page_template_redirect() {
    if( ! is_user_logged_in() && (is_page( ‘members’ )|| is_page( ‘activity’ ) || bp_is_user()) ) {
    wp_redirect( home_url( ‘/register/’ ) );
    exit();
    }
    } add_action( ‘template_redirect’, ‘bp_logged_out_page_template_redirect’ );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar