-
Author
-
October 14, 2017 at 15:01 #176616ysfcnParticipant
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.October 14, 2017 at 16:31 #176631Kieran_SQModeratorHi,
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 solutionIf 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.October 14, 2017 at 23:43 #176679Kieran_SQModeratorGlad 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 solutionIf 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.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.