Jump to content

Pages/Folder items not showing up on mobile navigation

Go to solution Solved by NathalieSR,

Recommended Posts

Hi all,  I am having issues with my mobile navigation.

I have a drop down menu, and on mobile - only some of the items from the drop down show up.
My website is in english and german, on the english mobile navigation 3 out of 4 pages that are placed inside a folder show up, on the german one only 1 out of 4 is visible.
On the english pages, the last folder item is missing and on the german pages only the last item in the folder is showing.

On desktop it works perfectly.

I have not tinkered with the code for said drop down apart from changing its background, text colour and text alignment.

Does anyone know how to solve this and have all folder items showing up as they should also on mobile?

My website is live here https://www.nathmakesthings.com/home-eng

image.png.8361de8d311f8bd371a5412bb7333078.pngimage.png.9a59cea8754def4860359a250885a7f7.png

Screen Shot 2023-01-16 at 19.22.19.png

Screen Shot 2023-01-16 at 19.22.11.png

Link to comment
  • Solution

I have kind of figured it out  - but not fully

I can force the folder open on mobile on each page with a piece of code. This however only works on some of the pages? On all my german pages it works fine, but on all english pages only 3 out of 4 pages still show up on mobile with the same piece of code applied to those pages.

This is the code I'm using

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

 

Edited by NathalieSR
Link to comment
  • 6 months later...

Yes, it's perfectcapturebooth.com

For English pages, it seems the "Home" and "About Us" are missing on the mobile version menu

And on the Spanish pages, it seems "Reserva" and a few other pages seem to go missing.

This is the code that Im using : 

 

<style>
  #header .header-nav-item:nth-child(2){
    display:none
  }
  #header .header-nav-item:nth-child(3){
    display:none
  }
</style>

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


 

Link to comment
12 hours ago, PerfectCaptureBooth said:

Yes, it's perfectcapturebooth.com

For English pages, it seems the "Home" and "About Us" are missing on the mobile version menu

And on the Spanish pages, it seems "Reserva" and a few other pages seem to go missing.

This is the code that Im using : 

 

<style>
  #header .header-nav-item:nth-child(2){
    display:none
  }
  #header .header-nav-item:nth-child(3){
    display:none
  }
</style>

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


 

You can use this new approach

image.thumb.png.0a60c2696c2180f462eb48d590717c52.png

image.thumb.png.a7248914286aeb8d654eed90c99abc9b.png

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

Hey man sorry for barely getting to this!
So I tried this code, for the desktop it works, but for mobile nothing is happening at all. Not sure if I'm inputting it wrong or something.

This is how I inserted it:

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

Edited by PerfectCaptureBooth
Link to comment

Update : 
So I'm trying this code instead, where I changed the "hide items on mobile " coding completely. And so far, this seems to work correctly.

<style>
    /* hide items on desktop */
    nav.header-nav-list>div:nth-child(2), nav.header-nav-list>div:nth-child(3) {
        display: none;
    }
    /* hide items on mobile */
 .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(2), .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(3)
  {
  display: none !important;
}
    </style>

Link to comment
On 8/14/2023 at 8:57 AM, PerfectCaptureBooth said:

Update : 
So I'm trying this code instead, where I changed the "hide items on mobile " coding completely. And so far, this seems to work correctly.

<style>
    /* hide items on desktop */
    nav.header-nav-list>div:nth-child(2), nav.header-nav-list>div:nth-child(3) {
        display: none;
    }
    /* hide items on mobile */
 .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(2), .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(3)
  {
  display: none !important;
}
    </style>

Did you solve all or still need help?

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 month later...
On 8/15/2023 at 3:22 AM, tuanphan said:

Did you solve all or still need help?

Updating, this code is no longer working for mobile, any solution?

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

Link to comment
On 10/11/2023 at 11:17 AM, PerfectCaptureBooth said:

Updating, this code is no longer working for mobile, any solution?

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

Change it to this

/* hide items on mobile */
[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)
  {
  display: none !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

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.