This topic has 3 replies, 2 voices, and was last updated 7 years by Kieran_SQ.

  • Author
  • #176616
     ysfcn
    Participant

    hi , I created a custom link to disable the login pop-up window and added it to the main menu. so the user who wants to log in goes to the wp-login.php page. there is no problem here. I do not want the user to see this link in the main menu after login. What do I have to do for this?

    Attachments:
    You must be logged in to view attached files.
    #176631
     Kieran_SQ
    Moderator

    Hi,

    Thanks for reaching out to us today about conditional menu items. You can achieve this with a small plugin called Menu Item Visibility Control which can be found here https://wordpress.org/plugins/menu-items-visibility-control/.

    Once installed each menu item will now have a field titled ‘visibility’, enter the below in this field to only show menu item(s) to logged out users.

    !is_user_logged_in()

    Likewise, if you wish to show a menu item only to users who are logged in you can use the below instead

    is_user_logged_in()

    Thanks,

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    Attachments:
    You must be logged in to view attached files.
    #176675
     ysfcn
    Participant

    resolved. thank you for your help 🙂

    #176679
     Kieran_SQ
    Moderator

    Glad it worked for you 🙂

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?