How to Hide the Navigation Bar on a Single Page of Your WordPress Site

Imagine waking up one day and realizing that you can’t actually use your smartphone’s browser anymore. Now, you need to resort to using a different browser or a tablet to access the web. Ugh…that’s what happened to me recently and I hate it when things like that happen. It’s inconvenient, I have to install a different app, and it makes me feel like I’m doing something wrong. Even worse, one day you may wake up and find that none of the tabs work anymore…so you have to re-learn how to browse the web. Thanks to the wonders of technology, we’ve now developed a solution to avoid all of that–an easy way to hide the navigation bar on a single page of your WordPress site.

Use Flexslider To Hide the Navigation Bar

I want to introduce you to Flexslider, a free and open-source plugin that does exactly what it says on the tin. With Flexslider, you can set individual slider speeds for each and every slide. So, let’s say you have four slides on your homepage and you want the first one to load at 0.5x the normal speed. It’s very easy. Just activate the plugin and go to the Settings page. Here, you’ll find a new option called ‘Flex Speed’. Enter ‘0.5’ in the text box and save the settings.

As you can see from the screenshot above, the top of the slider now reads ‘Flexslider’ and the copyright information has been hidden. That’s it. Your navigation bar is now an optional slide down the side of the page.

How to Use the Flexslider Shortcode

You can easily replicate this look by using a shortcode called ‘Flexslider’. Take a look at this example from ‘A Touch of Class’ blog. As you can see, the author has used the shortcode to create a slide animation that runs along the bottom of the page. When a visitor clicks on an article, a slide appears with more details about the article. When the visitor clicks on the x button, the slide disappears and they are taken to the purchase page. It’s a really nice little animation that draws the eye to the content and encourages the reader to swipe or click on something else.

The advantage of this method is that you don’t have to mess with CSS code. You just have to remember to activate the shortcode in the appropriate place on your page. That’s it!

Keep Your Navigation Bar Visible On Certain Pages

If you’re the type of person who opens your site in multiple tabs, you might experience a little bit of trouble with the above method. When you’re on a page where you want the navigation bar to remain visible, you can add a bit more CSS to show it off. For example, the below code will keep the navigation bar visible while scrolling down the page. Just add this code in the appropriate place on your page.

.navbar-fixed-bottom {
position: fixed;
bottom: 0;
width: 100%;
height: 50px;
z-index: 1000;

You can also use CSS variables to make the bar look the same on every page. Take a look at this example from ‘Style Your Nest’. As you can see, the navigation bar is styled using CSS variables so that it looks the same on every page.

And there you have it! Now, you can use the same technique to drop down a secondary menu when an item on your primary menu is clicked. You’ll need to add a bit more code but it’s still a simple solution that gives you total control over how and where your navigation bar appears.

So, what do you think? Would you try one of these techniques to hide the navigation bar from a single page of your site? I’d love to hear your thoughts in the comments below.