| | #1 |
| Advanced Warrior War Room Member Join Date: 2011
Posts: 652
Thanks: 320
Thanked 393 Times in 236 Posts
|
Hi, I'm wondering on how I can hide the menubar in just one WordPress page? I don't want to hide a page from the menubar because I know how to do that, but hide the menubar in a page. Thanks, Jimmy |
| |
| | #2 |
| WordPress Developer War Room Member Join Date: 2012
Posts: 27
Thanks: 3
Thanked 4 Times in 3 Posts
|
Add this line of code to the functions.php file of your WordPress theme : global $post; if ($post->ID == N) { add_filter('show_admin_bar', create_function('', 'return false;')); } Replace N by the ID of the page. |
|
WordPress plugins to: => Sell your products => Create your affiliate program => Create your members areas | |
| |
| | #3 |
| Advanced Warrior War Room Member Join Date: 2011
Posts: 652
Thanks: 320
Thanked 393 Times in 236 Posts
|
Thanks Jeremy! I'll test it out |
| |
| | #4 |
| HyperActive Warrior Join Date: 2009
Posts: 224
Thanks: 1
Thanked 19 Times in 19 Posts
|
Also, you can use some header plugin for your purpose. Its simple and easy to do.
|
| | |
| |
| | #5 |
| Active Warrior Join Date: 2010 Location: Patna
Posts: 69
Thanks: 11
Thanked 10 Times in 9 Posts
|
You need to use the CSS property (display: none; ) for the menubar to hide the menu on a particular page. If you'll share the actual page, I can give you the exact code that is needed to hide menubar on that particular page. Note: The solution provided by the Jeremy will hide the admin bar which appear on very top of the site. If this is what you want, you can go with his solution. |
|
Have a great day!
| |
| |
| | #6 | |
| New Warrior Member Join Date: 2008 Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
I want to hide the menu bar - not admin bar - on a specific page. Thanks for any help.. | |
|
Walle
| ||
| |
| | #7 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
| |
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| | #8 |
| New Warrior Member Join Date: 2008 Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
Thanks for the info.. Google is not always so friendly.. I did the G search before posting here.. and saw that thread.. it does not really answer the question. rajeevrla offered to give the specific code to use CSS.. that is what I was asking for.
|
|
Walle
| |
| |
| | #9 |
| Warrior Member Registered Member Join Date: 2012
Posts: 10
Thanks: 1
Thanked 2 Times in 2 Posts
|
You can remove the code for the menu bar or set the div class or id in the CSS file to "visibility: hidden;". If you are left with a blank space then set it to "position: absolute; left: -9999px;" - this will remove it from the page. It might be different for wordpress, i'm not sure. Hope this helps though! |
| |
|
| Bookmarks |
| Tags |
| hide, menubar, page, wordpress |
| |