-
Author
-
October 29, 2013 at 01:43 #5300gideon1210Participant
How do you hide the menu on the homepage i tried
body.homepage #navigation-top {
display: none !important;
}but i doesnt work any suggestions
October 29, 2013 at 03:33 #5302adamParticipant.top-bar ul.left {
display: none;
}if you want to just hide it on the homepage and not the other pages, i suppose you can give it it’s own div class and use display: none for that one.
October 29, 2013 at 10:31 #5311SQadminKeymaster@gideon1210 please stop creating two topics with the same question at the same time.
check the body classes since it should already be a specific class for homepage and use @adam code
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 29, 2013 at 13:13 #5322gideon1210ParticipantHi adam i used the code on the quick css
when i use.top-bar ul.left {
display: none;
}it removes it completely and if i change
display: none home;
it leaves it on every page is there any solution
October 29, 2013 at 23:10 #5365adamParticipanti solved a similar problem to this by creating a separate header.php file, which I named header2.php. I load header2.php on the homepage and every other page uses the original header.php. you can probably just remove the menu from header2.php so it doesn’t show on your homepage. i think that should work at least 🙂
October 30, 2013 at 12:29 #5382gideon1210ParticipantI tried what you suggested and created a header2 and removed the menu code, but when i change it on the front-page.php from get_header();?> to get_header2();?> it doesnt recognize the string
October 30, 2013 at 18:39 #5415SQadminKeymasterYou should have header-2.php and the function get_header(‘2’);
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 22, 2013 at 07:53 #7075IamJAXParticipantI use http://wordpress.org/plugins/nav-menu-roles/ plugin to manage menu items for logged in and logged out users. Also there is a plagin with similar functionality and easier to use in codecanyon.
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.