Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 26th Aug 2012, 11:44 AM   #1
Advanced Warrior
War Room Member
 
Join Date: 2011
Posts: 652
Thanks: 320
Thanked 393 Times in 236 Posts
Default
How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

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
taskemann is offline  
Unread 26th Aug 2012, 04:39 PM   #2
WordPress Developer
War Room Member
 
Jeremy Lebre's Avatar
 
Join Date: 2012
Posts: 27
Thanks: 3
Thanked 4 Times in 3 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

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.

Jeremy Lebre is offline  
Unread 26th Aug 2012, 06:01 PM   #3
Advanced Warrior
War Room Member
 
Join Date: 2011
Posts: 652
Thanks: 320
Thanked 393 Times in 236 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

Thanks Jeremy! I'll test it out
taskemann is offline  
Unread 26th Aug 2012, 10:58 PM   #4
HyperActive Warrior
 
Join Date: 2009
Posts: 224
Thanks: 1
Thanked 19 Times in 19 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

Also, you can use some header plugin for your purpose. Its simple and easy to do.

teguhyuliantos is offline  
Unread 27th Aug 2012, 07:11 AM   #5
Active Warrior
 
rajeevrla's Avatar
 
Join Date: 2010
Location: Patna
Posts: 69
Thanks: 11
Thanked 10 Times in 9 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

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!
rajeevrla is offline  
Unread 4th Apr 2013, 06:37 AM   #6
New Warrior Member
 
Join Date: 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

Originally Posted by rajeevrla View Post

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.
I could use some help with this!

I want to hide the menu bar - not admin bar - on a specific page.

Thanks for any help..

Walle
walle is offline  
Unread 4th Apr 2013, 07:14 AM   #7
ResponsiveDesignTest.Net
Registered Member
 
Michael71's Avatar
 
Join Date: 2011
Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

Google is your friend...

WordPress › Support ยป Hide menu for certain pages

HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu
Michael71 is offline  
Unread 4th Apr 2013, 07:20 AM   #8
New Warrior Member
 
Join Date: 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

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
walle is offline  
Unread 4th Apr 2013, 02:51 PM   #9
Warrior Member
Registered Member
 
bigwilsy's Avatar
 
Join Date: 2012
Posts: 10
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: How to hide the menubar in a WordPress page?
Share on: 
fb share twitter share gplus share more share

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!
bigwilsy is offline  
Closed Thread


Bookmarks

Tags
hide, menubar, page, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:34 AM.