Jump to content

Error on Navigation Menu, Folder items not appearing

Recommended Posts

Site URL: https://lychee-carnation-4cdg.squarespace.com/

Hi!

I'm trying to create a multilingual website and everything is working except for the items on folder that are not showing up on mobile.

I followed this tutorial: https://www.creationsbyfaria.com/blog/multilingual-site-squarespace

Basically I've created every page I need for each language, and I'm using custom CSS on each page to hide the navigation items I don't want to show on a specific language.

Everything is working perfectly fine on desktop, but on mobile, on the second and third language, the items on the folder I have are not showing up.

I've attached a print of what my Pages look like. The first language is Portuguese, the second English, and the third French.

The Products folder is the one I'm having trouble with on Mobile. Basically when I click the folder the options are not visible, but this only on the second and third language. On Portuguese they show up fine.

This is the code I'm using on the English Pages to hide the Portuguese and the French ones:

<style>
#header .header-nav-item:nth-child(1) {display:none}
#header .header-nav-item:nth-child(2) {display:none}
#header .header-nav-item:nth-child(3) {display:none}
#header .header-nav-item:nth-child(4) {display:none}
#header .header-nav-item:nth-child(5) {display:none}
#header .header-nav-item:nth-child(6) {display:none}
#header .header-nav-item:nth-child(7) {display:none}
#header .header-nav-item:nth-child(15) {display:none}
#header .header-nav-item:nth-child(16) {display:none}
#header .header-nav-item:nth-child(17) {display:none}
#header .header-nav-item:nth-child(18) {display:none}
#header .header-nav-item:nth-child(19) {display:none}
#header .header-nav-item:nth-child(20) {display:none}
#header .header-nav-item:nth-child(21) {display:none}

@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(1) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(2) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(3) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(4) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(5) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(6) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(7) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(15) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(16) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(17) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(18) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(19) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(20) {display:none}}
@media screen and (max-width:767px){#header .header-menu-nav-item:nth-child(21) {display:none}}

 

What can I do to solve the problem of the folder items not showing on mobile? 

Thanks a lot!

Capturar1.PNG

Link to comment
  • 2 weeks later...
  • 2 weeks later...

Hi!

The problem is on Mobile, with the 2 other languages, the english and the french.

On desktop is working fine, the problem is only with mobile.

I attached a video on this post where I showed what happens.

Link to comment
  • 1 month later...
  • 1 month later...
9 hours ago, nbeck said:

Hi @tuanphan,

I just emailed you regarding the same issue as this one before i found this thread. Maybe post solution in here for others if you know what's wrong.

Best regards

Hi,

I think i answered your email a few hours ago. You can check it again.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
17 hours ago, stephanmader said:

www.stephanmader.at

the problem is on the English page in the folder music (on German page all works well)

Add to English Pages Header

<style>
  [data-folder="/music"] div {
    display: block !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...

Hello, 

I've already messaged you, and deleted my secondary language code by the time you reviewed it. 

I'm having the same problem as everyone else here. On desktop the folder works perfectly. In mobile they're missing. Please help me fix this!!!! You're the best!

anastasiawellnesscoach.com

password: Bali123

Link to comment
On 1/21/2022 at 4:21 PM, GoofyBigKid said:

Hello, 

I've already messaged you, and deleted my secondary language code by the time you reviewed it. 

I'm having the same problem as everyone else here. On desktop the folder works perfectly. In mobile they're missing. Please help me fix this!!!! You're the best!

anastasiawellnesscoach.com

password: Bali123

Replace these code

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

with

nav.header-menu-nav-list>[data-folder].header-menu-nav-folder--active>div .header-menu-nav-item:nth-child(3) {
    display: none;
}

Do similar for other items

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

I was wondering if anyone can help me. I'm having the same issue, I have a multilingual page (English and French). The folder in EN (desktop and mobile) looks great. In FR the folder shows up perfectly, but does not show up on mobile. 

The code that I'm using is the following for French mobile:

<style> 
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(1){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(2){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(3){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(4){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(5){
    display:none}
  }
</style>

 

Would someone be able to assist me with this problem?

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

Password: Coffee55

Thank you

EN.png

EN1.png

FR.png

FR1.png

Edited by Mo1234
Link to comment
2 hours ago, Mo1234 said:

I was wondering if anyone can help me. I'm having the same issue, I have a multilingual page (English and French). The folder in EN (desktop and mobile) looks great. In FR the folder shows up perfectly, but does not show up on mobile. 

The code that I'm using is the following for French mobile:

<style> 
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(1){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(2){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(3){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(4){
    display:none}
  }
@media screen and (max-width:1511px){
  #header .header-menu-nav-item:nth-child(5){
    display:none}
  }
</style>

 

Would someone be able to assist me with this problem?

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

Password: Coffee55

Thank you

EN.png

EN1.png

FR.png

FR1.png

Remove code you posted above & use this code

<style>
  nav.header-nav-list>div:nth-child(1), nav.header-nav-list>div:nth-child(2), nav.header-nav-list>div:nth-child(3), nav.header-nav-list>div:nth-child(4), nav.header-nav-list>div:nth-child(5) {
    display: none;
}
/* hide items on mobile */
[data-folder="root"]>div:first-child>div:first-child>div:nth-child(1), [data-folder="root"]>div:first-child>div:first-child>div:nth-child(2), [data-folder="root"]>div:first-child>div:first-child>div:nth-child(3), [data-folder="root"]>div:first-child>div:first-child>div:nth-child(4), [data-folder="root"]>div:first-child>div:first-child>div:nth-child(5) {
    display: none;
}
</style>

If code doesn't work, you can setup an access password we can check easier, your site is private now

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
12 hours ago, Mo1234 said:

@tuanphan Thank you for your assistance. Unfortunately, the code didnt work. I have added the access password . The password is Coffee55. 

Thanks 🙂

Thank you. Which page you want to hide items 1, 2, 3, 4, 5? We can check easier

and which page you added code I sent?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.