[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: |
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 |
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 } :) |
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 05:05 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.