Jump to content

Hiding pages on mobile version header

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.dasbergquartier.com

Hi,

I have just created my first Squarespace site and, as I wanted the site to be in two languages, I have two pages for each page of the site, each in a different language.  To do this I included the below code on each page so that unwanted pages are hidden in the header:

<style>

#header .header-nav-item:nth-child(8) {display:none}

</style>

This means that this page (which is in German) doesn't show in the header of the pages in English, for example.

This works perfectly for the desktop version BUT all pages are still showing up in the mobile version and I have no idea why.  Has anyone else had this issue and can anyone give me some code which will make only the right pages for each language appear in the mobile header as it does on the desktop header?  Any help anyone can give would be really appreciated.

Many thanks in advance.

Link to comment
  • Solution
On 6/16/2022 at 6:05 PM, DBQuartier said:

Site URL: https://www.dasbergquartier.com

Hi,

I have just created my first Squarespace site and, as I wanted the site to be in two languages, I have two pages for each page of the site, each in a different language.  To do this I included the below code on each page so that unwanted pages are hidden in the header:

<style>

#header .header-nav-item:nth-child(8) {display:none}

</style>

This means that this page (which is in German) doesn't show in the header of the pages in English, for example.

This works perfectly for the desktop version BUT all pages are still showing up in the mobile version and I have no idea why.  Has anyone else had this issue and can anyone give me some code which will make only the right pages for each language appear in the mobile header as it does on the desktop header?  Any help anyone can give would be really appreciated.

Many thanks in advance.

For the mobile navigator, you can try the following one

#header  .header-menu-nav-item:nth-child(8) {
  display: none;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.