Jump to content

Hiding a single site navigation item on homepage

Go to solution Solved by justinjamesclack,

Recommended Posts

Hi all, first time here on the forum, but long-term SQSP user. For the redesign of https://www.visualspectrum.ch/ I would like to hide the top menu item called "Galerien" from the homepage, forcing the visitor to scroll down and access the different pages via the images. But on all other pages I would like that dropdown menu item to show, to give the visitor the option to quickly access another gallery, rather than having to go via the homepage. How can i do this? Thanks a lot for your help

Link to comment
  • Replies 5
  • Views 757
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

35 minutes ago, miketerranova said:

Hi all, first time here on the forum, but long-term SQSP user. For the redesign of https://www.visualspectrum.ch/ I would like to hide the top menu item called "Galerien" from the homepage, forcing the visitor to scroll down and access the different pages via the images. But on all other pages I would like that dropdown menu item to show, to give the visitor the option to quickly access another gallery, rather than having to go via the homepage. How can i do this? Thanks a lot for your help

Hi Mike, 

You can use the following code;

.header-nav .header-nav-item--folder {
visibility: hidden !important;
}

Link to comment
Posted (edited)
19 minutes ago, justinjamesclack said:

Hi Mike, 

You can use the following code;

.header-nav .header-nav-item--folder {
visibility: hidden !important;
}

Hi @justinjamesclack, many thanks. Is that all I need to inject or do I have to add the name of the dropdown menu item somewhere to define what I want to hide? To be clear, I just want to hide this one item, the other menu item (called About/Contact) should stay visible. Cheers

Edited by miketerranova
Link to comment
  • Solution
Posted (edited)
11 minutes ago, miketerranova said:

Hi @justinjamesclack, many thanks. Is that all I need to inject or do I have to add the name of the dropdown menu item somewhere to define what I want to hide? To be clear, I just want to hide this one item, the other menu item (called About/Contact) should stay visible. Cheers

Hi @miketerranova,

If you had multiple dropdown menu's then yes you would have to target the specific dropdown menu.

So depending on where you would like to hide the dropdown menu, is where you should inject the code, using the page settings and the header code injection. 

However, if you want to hide the dropdown menu across the whole site, add the code to the custom css window;

image.png.2a5b62186043db45f33b9c9079400c7f.png

If you want to just inject this code on the home page, open up the page settings for the home page, then navigate to advanced, and then in the header code injection add the code between <style></style> tags, like this;

<style>
.header-nav .header-nav-item--folder {
visibility: hidden !important;
}
</style>


image.png.d4db1b6b2292c32c2637d029ddedf807.png

Edited by justinjamesclack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.