Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Remove page menu bar from specific pages


  #1  
Old Jan 14, 2010, 03:17 PM
noonan
 
3 posts · Jan 2010
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?
  #2  
Old Jan 14, 2010, 04:26 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 14, 2010, 06:19 PM
noonan
 
3 posts · Jan 2010
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
}
  #4  
Old Jan 14, 2010, 06:34 PM
noonan
 
3 posts · Jan 2010
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
}



Bookmarks

Tags
page menu bar



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Remove header image and menu bar from just one page tdill Header configuration & styling 18 Dec 10, 2009 06:01 PM
How to put specific SWF files on specific pages as header images? kippiper Header configuration & styling 2 Dec 10, 2009 09:23 AM
How do I hide Horizontal Decoration Bar, Pages Menu, Categories Menu on certain pages sixfirs Atahualpa 3 Wordpress theme 0 Nov 19, 2009 06:13 AM
Three specific customization questions (menu bar, page content, background) Shane Header configuration & styling 1 Oct 13, 2009 06:24 AM
Keep the name on the Page Menu Bar, remove the name on the page jockoe Page & Category Menu Bars 5 Mar 23, 2009 11:02 PM


All times are GMT -6. The time now is 01:04 AM.


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