-
Author
-
January 1, 2016 at 05:54 #95893tom70Participant
How to hide the menu for non-logged in users on all pages?
I only want this done with php code.January 3, 2016 at 22:25 #96077LauraModeratorHello, you can use this php code at header.php in child theme ( copy the main theme file then paste it at child theme, then add the code)
COPY CODE<?php if ( is_user_logged_in() ) { } else { ?> <style type="text/css" media="screen"> ul#menu-sweetdate { display: none; } </style> <?php } ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 6, 2016 at 02:30 #96545LauraModeratorHello, do you have any cache plugin or csn? if so, please clean cache
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 7, 2016 at 16:45 #96930LauraModeratorHello, glad it worked! 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.