Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Hide %Pages Menu On Home Page (http://forum.bytesforall.com/showthread.php?t=16167)

bswb97 Dec 4, 2011 05:36 PM

[SOLVED] Hide %Pages Menu On Home Page
 
I have a static home page and I'm looking to hide the menu on that particular page. I would have thought something like this came up in the forum already but I couldn't find it.

I created a half-ass version using conditional PHP in the header area for %pages. However, that doesn't pull the proper CSS for the menu and leaves them as just text links.

The workaround for this is hard-coding a menu using a div and making it conditional PHP. If there's an easier solution, it'd be a good trick to add to the toolkit. Thoughts?

lmilesw Dec 4, 2011 06:34 PM

I would think just using the page id in combination with the menu id and display:none should do the trick.

juggledad Dec 4, 2011 06:53 PM

HTML Code:

body.home #menu1 {display:none;}

bswb97 Dec 4, 2011 08:13 PM

That worked! I always overthink these things, appreciate the nudge.


All times are GMT -6. The time now is 08:44 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.