DBQuartier Posted June 16, 2022 Share Posted June 16, 2022 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 Beyondspace Posted June 22, 2022 Solution Share Posted June 22, 2022 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; } tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment