Support » Plugin: Custom Login Page Customizer by Colorlib » How do I add Login/Register and Logout to the menu?

  • Resolved Daniel

    (@marketinggreenpaint)


    So I have installed the addon, I configured everything, but how do I add it to the menu?
    I dont get it. Am I missing something?

    Thank you in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support mplusb

    (@mplusb)

    Hello @marketinggreenpaint,

    This is not something this plugin does.
    This plugin will only customize your login page.

    If you want to add those links to your menu I recommend using a plugin like this: https://wordpress.org/plugins/login-logout-register-menu/

    All the best,
    Mihaela

    I am not getting it. Nice concept but.. does is create a short code to put on a page. Where do you assign the page url for the login page? I have spend over an hour looking for something to work on my login page.
    Sorry.
    Regards,

    This is a really simple request. How come you have left this out? Seems like a major oversight.

    Plugin Support mplusb

    (@mplusb)

    Hello @remymedranda,

    Thank you for taking the time to reply here and for your feedback. We highly appreciate it!
    Currently this plugin was not designed to have the option to add the login/register page in the menu. This plugin serves a rather specific purpose – to change the design of the login page (which already exists).

    If you would like to add a custom link in a menu you can do that by going to your dashboard > Appearance > Menus > select your main menu > and then click on Custom Links > add the url of your login page > and a label and click on Add to menu > then save the menu.
    Here is a screenshot with an example: https://gyazo.com/f5272fc811045b53b3c8168a08bdf8f0
    After you add it to the menu: https://gyazo.com/ba4123a361521331d6d5977b6bdd374e

    Nonetheless, we will keep your suggestion in mind for a future update.

    Thank you for understanding,
    Mihaela

    This will add a logout link to your main menu if the user is logged in:

    add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
    function add_loginout_link( $items, $args ) {
    if (is_user_logged_in() && $args->theme_location == 'primary') {
    $items .= '<li><a href="'. wp_logout_url( home_url() ) .'">Logout</a></li>';
    }
    return $items;
    }

    I don’t think this should be part of the plugin as it’s outside the scope of login screen customisation…

    • This reply was modified 1 year, 9 months ago by thelyall.
    Plugin Support mplusb

    (@mplusb)

    Thank you, @thelyall! 💖

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I add Login/Register and Logout to the menu?’ is closed to new replies.