-
Author
-
June 20, 2014 at 09:50 #20350rudik2Participant
Hi,
i use menu item visibility control plugin to hide menu, but in mobile i see menu rectangle still.
Please look in print screen.
http://s1.postimg.org/69fkph4v3/zdjecie_1.jpgHow to hide this for not logged users?
June 27, 2014 at 01:26 #21056AbeKeymasterHi, that will show since is the container of the menu and not a link you have added a condition to.
Hide that using css media query:COPY CODE@media only screen and (max-width: 480px) { .contain-to-grid { display: none; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 11, 2014 at 12:00 #22360rudik2ParticipantThank you Abe, code working, but when user is logged he don’t see menu in mobile. It is possible to display menu for only logged members??
July 11, 2014 at 12:08 #22362AbeKeymasterHi, that implies some php coding and some conditionals to be added in header.php. Please try hiring a developer to help you with that
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.November 9, 2014 at 04:31 #34764FDParticipantrudik2: You can use the is_user_logged_in() function.
Read more about it here: http://codex.wordpress.org/Function_Reference/is_user_logged_inExample:
<?php if ( is_user_logged_in() ) { ?>
HTML code for logged in users
<?php } ?>May 24, 2016 at 19:22 #122946mike1ParticipantI also need to hide the menu container if user isn’t logged in, I’ve tried that code but can’t get it to work… anyone know how to do this?
May 30, 2016 at 23:59 #123682AbeKeymasterHI, this topic is very old. Try to open a new one or talk with your developer since it required a bit of PHP knowledge
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘How to hide menu in mobile for not logged in.’ is closed to new replies.