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)
-   -   How to exclude category menu bar from certain pages? (http://forum.bytesforall.com/showthread.php?t=5975)

suzannlarsen Feb 21, 2010 05:29 PM

How to exclude category menu bar from certain pages?
 
Is there a way to exclude the entire category menu bar from certain pages? Either by a list of page numbers or by types of pages -- similar to how we can configure left/right sidebars to only show up on certain pages?

I don't want the category menu bar to appear on my "Page" pages, Home page or Front page -- only on my more blog styled pages.

Thanks.

juggledad Feb 22, 2010 06:39 AM

you can do this thru CSS Inserts. View each page you don't eant teh catagory menu on, and then look at the source of the page. Locate the line that starts '<body' it will look something like this
HTML Code:

<body class="page page-id-5 logged-in">
what you need is the 'page-id-5'. With this you can construct your CSS selector and rule. For example:
HTML Code:

.page-id-5 #menu2 {display: none;}
if you have several pages you can lump the selectors together, for example
HTML Code:

.page-id-5 #menu2,
.page-id-7 #menu2,
.page-id-25 #menu2 {
display: none;}


taniab Jul 2, 2010 12:44 PM

Hi, I am trying to do something very similar but cannot quite figure it out from this info.

I'm using WP 2.9.2 and Atahualpa 3.4.9 (wic has been great to work with so far).

What I want is that the category bar only shows on the blog page (page-id-6) and on the other 3 pages the coloured bar is there but without the navigation words. I have tried a few different things but I'm not a pro with coding so not sure I'm putting the right thing in the right place.

I have tried adding the following code to get rid of the 2nd nav bar on these pages but it doesnt seem to work:
.page-id-29 #menu2,
.page-id-74 #menu2,
.page-id-21 #menu2 {display: none;}

Any help would be hugely appreciated! My site is in maintenance mode but if it would help I can disable it briefly. Thanks.


All times are GMT -6. The time now is 04:55 PM.

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