x
Square

Hide Your Navigation on a Single Page (Without Customizing Your Theme)

Say you have a really nice splash page, but you want to hide your navigation on that page so users are directed to a specific page of your site first after visiting it. If you're familiar with CSS you can do this easily, and thanks to how CSS works you can do this without customizing your theme itself.

In this example, I've used Saucy as the theme for a site selling oranges. I chose the Splash page layout for the page, and now I really only want the front page to be the site name, slogan, and a button that sends people to a special deals page first.

image

This looks great, but I'd really like to hide the navigation so that the first page visitors go to has current special deals. The first step is to publish the site. Modern browsers like Chrome and Safari come with an extremely handy tool called the Web Inspector. There are many powerful things you can do with this, though in this example we only need to get the class or ID of the element containing the navigation. Right-click or CTRL-click on your navigation, then choose "Inspect".

image

A window will pop up, and the element you right-clicked on will be selected within the code displayed. Mouse over parent elements until you get the element that contains all of your site navigation. Web Inspector makes this really handy because it will highlight the element on the page. You can see in my screenshot that the element I want to hide has an ID of "header-wrap".

image

Great! We're now two thirds of the way done. Next, go back to the editor and go to the Pages tab. Select your home page, then click on "Advanced". In the Header Code field, enter this code:

<style>
	#header-wrap { display:none; }
</style>

image

After you've done that, re-publish your site and check it out!

image

Congrats! You've hidden the navigation on a single page of your site, and you're still using a standard theme. What if you're using a different theme and this hides your logo? Go back to web inspector, and look into child elements until you find the element that only contains your navigation. Are you using one of our themes that has a hamburger icon all the time? The same principle applies- use Web Inspector to find the element that has just the icon, and use that ID or class with the same CSS rule above.

As you can see, each theme is different so what you're going to be hiding will vary from one theme to another, however the basic concept is the same. Remember, you should be comfortable working with CSS as we don't provide assistance with custom CSS and HTML changes. If you have any trouble, just delete the code from the Header Code field and start over.

79,877 Views
Message 1 of 415
Report
414 REPLIES 414
Square

Hi @BBM! Can you post a link to the page of your website where you want to do that?

2,191 Views
Message 54 of 415
Report

Hi Adam, 

Is there any other way I can show you my website for you to check it?

I cannot send you the URL as apparently my website is not live as when I access the website the page is all white.

I have not yet indexed my website on Google Search Console so I believe that is why the website, despite being published, is not accessible. I have contacted my domain hosting provider and ask them help to solve this for me.

This leads me to another thing: everytime I try to enable SSL certificate it it generates the below message:

In order to enable SSL on your website, your domain's DNS settings need to be updated.

Option A: Email instructions to your domain registrar

Send these instructions to your domain registrar (ex. GoDaddy, 1and1, Yahoo, etc.)

(...)

Thank you

Cheers

2,186 Views
Message 54 of 415
Report
Square

I think that changing this:

<style>
.nav-wrap { display: none !important; }
</style>

to this will fix that (at least on the published site if not in the editor):

<style>
.nav-wrap, .unite-header { display: none !important; }
</style>
2,181 Views
Message 54 of 415
Report

HI Adam,

It worked and the navigation bar is now gone (at least) on both the mobile preview and the code editor so I hope this will appear when published.

What changes must be done to the code used below so that my logo shows up?

<style>
.nav-wrap, .unite-header { display: none !important; }
</style>

Thnak you 

Best regards

2,174 Views
Message 54 of 415
Report

Hi Adam, 

I managed to remove the nav bar but still struggling with the logo - I want my logo to appear in my website but nothing seems to do the trick...

I even saw a thread where you say that putting ,#logo after .nav-warp  usually works but at least on my theme is not helpful...

Following what you posted in that other post I used the below code but nothing happened:

<style>
.nav-wrap, #logo .unite-header { display: none !important; }
</style>

What am I doing wrong?

Thank you 

Cheers

2,168 Views
Message 54 of 415
Report

Hi @Adam 

(I just noted I was replying my own messages...)

I managed to remove the nav bar but still struggling with the logo - I want my logo to appear in my website but nothing seems to do the trick...

I even saw a thread where you say that putting ,#logo after .nav-warp  usually works but at least on my theme is not helpful...

Following what you posted in that other post I used the below code but nothing happened:

<style>
.nav-wrap, #logo .unite-header { display: none !important; }
</style>

What am I doing wrong?

Thank you 

Cheers

2,163 Views
Message 54 of 415
Report

HI @Adam 

Apologies for insisting but can you help me with the logo in my splash page?

So that you know I was able to publish it and SSL certificate is taken care of now - in case you need to check it please see www.nomadoconsulting.com

2,157 Views
Message 54 of 415
Report
Square

Did you edit the splash page template to remove the code for the logo? It might be easiest to just add a regular image element to the top of your splash page and use the logo with that.

2,153 Views
Message 54 of 415
Report

Hi @Adam 

Thank you for your reply. 

No, I did not make any changes through the CSS/HTML editor as the whole point of it was making any changes through the page SEO editor.

Amongst other reasons, I do not want to lose Weebly theme support...

So back to my question: is there any SEO trick we can work around in order to show the logo as we did for the navigation bar and the white color font for the newsletter form?

Thank you 

Cheers

1,968 Views
Message 54 of 415
Report

Hi again @Adam,

I rather prefer not to use the image for the logo as I want to put the logo as high as possible (where the nav bar is located) while the image is somewhat alligned in the middle of the website.

Could you please help me with this?

Anyone else, beside Adam, knows how to do this (Splash page (UNITE 2 theme) without navigation bar but with logo)? @Promining @Bernadette @Queenieaks1 @catvideos ?

Thank you 

1,965 Views
Message 54 of 415
Report
Square

Can you make a separate post about what you need with a link to your site, @BBM? I think it's a bit more involved than just hiding your navigation and it'll get better visibility that way.

1,959 Views
Message 54 of 415
Report

I am trying to follow the steps but cannot seem to locate the advanced button...any help?

5,442 Views
Message 56 of 415
Report
Square

Sorry about that, @mooredd. We updated the button to say "SEO Settings" since much of what's in there is SEO related. If you click on that you should see the field you're looking for.

5,373 Views
Message 56 of 415
Report

THanks for your information.  I tried this in the "header code" section (no "Advanced" section, just a "SEO settings" for the page). And it changes nothing.  I took off the </style> and the page went blank so something is working...   

<style>
	#nav-wrap { display:none; }
</style>
5,005 Views
Message 63 of 415
Report
Square

What site did you add it to, @jpstonehouse? It might need a small tweak to work with it.

4,893 Views
Message 63 of 415
Report

Thanks Adam!

awildingwells.com/taming-beasts.html

I had to change the the format of all Tall Header pages to do it... (editing the HTML/CSS).  

<div class="nav-wrap">
<style>
#nav-wrap { display:none; }

<div class="container">
<div class="logo">{logo}</div>
<div class="nav desktop-nav">{menu}</div>
</div>
</style>
</div>

Please let me know if there is a way to do it to just one page.

Thank you!

John

4,628 Views
Message 63 of 415
Report
Square

That code you pasted in is broken with the closing style tag where it is. It should be more like this:

<div class="nav-wrap">
<style>
#nav-wrap { display:none; }
</style>
<div class="container">
<div class="logo">{logo}</div>
<div class="nav desktop-nav">{menu}</div>
</div>
</div>

If that works for all pages, then all you need to do is add this bit to a specific page's header code instead (found on the Pages tab in the SEO Settings for the page):

<style>
#nav-wrap { display:none !important; }
</style>
4,545 Views
Message 63 of 415
Report


@Adam wrote:

What site did you add it to, @jpstonehouse? It might need a small tweak to work with it.



Hi Adam,

I tried the code you provided on my site but it did not work.

Could you please help me to see my site: http://www.dhltaiwanconnects.com/googletest.html

I would like to hide the navigation/menu as well.

THANKS A LOT!!

Mike

3,617 Views
Message 63 of 415
Report
Square

On that page add this to the header code field:

<style>
div.birdseye-header { display: none !important; }
</style>
3,559 Views
Message 63 of 415
Report

I did the same on this site but it didn't work.  I replaced 'nav-wrap' with the id of one of the menu item wraps, and it changed things, so I know that the code it being executed.  I just don't know what the 'id' is for  (or how to indentify) the nav-wrap.   https://www.block8academy.com/sd43-petition.html

2,895 Views
Message 63 of 415
Report

Hello! Iv'e tried all the steps over and over again and it's not working. Could you please help me. 

3,970 Views
Message 67 of 415
Report