• Resolved sezgee

    (@sezgee)


    Hi again,

    Using your great plugin on another site I’m building. I need to change the automatic menu text to just LOGIN (remove join) or LOGOUT. I tried your Loco Translate suggestions (from previous help) but can’t find the menu string. Is there a way to do this?

    Thanks as always!

    Sez

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sezgee

    (@sezgee)

    Hi,

    Using your great plugin again on another site. Is there a way to change the menu item to just LOGIN (or LOGOUT)? I tried adding this custom function through code snippets, but it didn’t do anything:

    add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
    function add_loginout_link( $items, $args ) {
    if ( SwpmMemberUtils::is_member_logged_in() && $args->theme_location == 'primary') {
    $items .= 'Logout';
    }
    elseif ($args->theme_location == 'primary') {
    $items .= 'Login';
    }
    return $items;
    }

    Thanks,

    Sez

    • This reply was modified 2 years ago by sezgee.
    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, we currently have the following addon.

    https://simple-membership-plugin.com/adding-mini-login-widget-sidebar-header-footer/

    Let me know if this helps you in any way.

    Kind regards.

    Thread Starter sezgee

    (@sezgee)

    Thanks, yeah, with the shortcode I can then customize the text with Loco Translate and CSS. Thank you!

    Plugin Support mbrsolution

    (@mbrsolution)

    I am glad to know ??

    Enjoy the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Menu Text & Link’ is closed to new replies.