Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Remove page menu bar from specific pages (http://forum.bytesforall.com/showthread.php?t=5308)

noonan Jan 14, 2010 02:17 PM

[SOLVED] Remove page menu bar from specific pages
 
Hi,

What a wonderful theme!

I'm building a members site where most of the pages are available only to regstered members.

However, Non-members have access to a few, selected pages. I would like to hide the page menu bar from these specific pages.

Is this possible?:confused:

juggledad Jan 14, 2010 03:26 PM

Yes, but you will have to edit some of the code. You would have to add a test for the pages you don't want displayed in bfa_header_config.php something liks
if (!is_page('4') and (!is_page('9') ) {
all
pagemenu
code
goes
here
}
So this would not show the page menubar on page 4 or 9

noonan Jan 14, 2010 05:19 PM

Awsome. Thank you.

Initial tests look very good.

Usage:

// Page Menu Bar
if (!is_page('4') and (!is_page('9') ) {
LEAVE THIS EMPTY}else{
ALL ORIGINAL PAGE MENU BAR CODE HERE
}
:)

noonan Jan 14, 2010 05:34 PM

Oops - not quite.

Tests with a single page were OK, but when removing it from multiple pages with
" if (!is_page('4') and (!is_page('9') )..." as suggested, it killed the WP dashboard and left me with a blank page.

All good now though. Implementation was a little different though:

// Page Menu Bar
if (!is_page('4') ) {
LEAVE THIS EMPTY
}elseif (!is_page('9') ) {
LEAVE THIS EMPTY
}else{
ORIGINAL PAGE MENU BAR CODE HERE
}


:)


All times are GMT -6. The time now is 03:49 PM.

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