Jump to content

How do I hide the navigation bar on a landing page?

Recommended Posts

  • Replies 15
  • Views 77.2k
  • Created
  • Last Reply

If you inject the following code on the page it seems to do the trick really well. The unintended consequence is the main banner is hidden as well. It is easy enough to just add a block that looks like the banner so the problem is solved.

<style> #header { display: none } </style>

Link to comment
  • 1 month later...

[page ID] #collection-51b08e86e4b0e8d244ddb638 [Logo style] {img src="item/51b86ecae4b06b939d356f95?format=original" ; display: none; }

I tried this but it stilll gives an error. I know something is wrong but I don't have any idea where the problem is. I hope you could help me with it.

Link to comment

[page ID] #collection-51b08e86e4b0e8d244ddb638 [Logo style] {img src="item/51b86ecae4b06b939d356f95?format=original" ; display: none; }

I tried this but it stilll gives an error. I know something is wrong but I don't have any idea where the problem is. I hope you could help me with it.

Link to comment

where is the navigation, it doesnt seem to be showing at all :). I must be going mad over here, unless you have already hidden it.

willing to help out

EDIT

.mobile-nav, .show-nav {display: none;}That shows your nav being on this particular page as being hidden. Do you want that hidden or not.

Also are you making the page your working on to be the landing page? or is just a test.

Link to comment

Haha oh sorry, I obviously did not made my point clear. Yes, I want the page to be a landingspage. So I want the navigation to be seen (like on every page), and the logo to be hidden on only the landing page.

Link to comment

Hi - I can see you have hidden the navigation and banner on your site. But when I try to do this on mine it doesn't work. I don't think that it is because of caching because when I view source code I can see that the source code is there. Are you doing something else?

Link to comment

I did not do anything other than using the code injection block. Sorry. I am quite new to all of this. if you do find what the hangup is I would love to know so that I can avoid it. Thanks

Link to comment

I'm not sure what template you're using, so it might vary, but using the FIVE template, you can remove the logo but leave the navigation in using this CSS:


#collection-yourcollectionid123456789 #banner-wrapper { display: none !important; }

Link to comment
  • 1 year later...

Hey community,I am trying to make a splash page before my official launch of my website. I have two buttons on my page, one that says "SUBSCRIBE" and the other a "Contact us" form. My goal is once the subscribe button is clicked, it'll lead to a subscribe to newsletter page. However, on this specific page, I want the navigation bar gone but the Logo and logo title to remain.

I've tried entering this in "advance" for my subscribe page with; ".primary-nav { display: none; }" but it doesn't work. I'm a complete newbie at this!

I've also used this CSS: "l" which works, but removes the navigation bar and logo. Please help!

Thank you :)TSB

Link to comment
  • 1 year later...

I just wanted to add that in the Five template it doesn't work with just #header it is #page-header-wrapper in the menu Configure page --> Advanced --> Page header Code injectionThis removes everything on the top of your page:


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

I use Chrome to help find the id, you can right click on an element of a page an choose "Inspect" in the menu, it will open the source code at the position of that element and marks this section. There you find also the id= "#page-header-wrapper" ...

If you go just on the logo you will see that it maybe has a different id, so you can find the element id's within the page-header-wrapper if you want to hide things separately.

The page-header-wrapper is everything on top of the page, so on my page there is no navigation, no logo or background banner visible and the rest of the page moves up.

Hope that helps others to identify id's and hide things on single pages.

Link to comment
  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.