Jump to content

ggoodno

Member
  • Posts

    18
  • Joined

  • Last visited

Posts posted by ggoodno

  1. Site URL: https://www.covidlonghaulers.com/

    I have a need to hide certain items from the mobile hamburger menu, as I have done in the desktop view. However the code to hide from desktop doesn't currently translate to mobile.  Could you help me fix this? I'm using 7.1.

    The pages that need to be hidden are currently turned off but will be turned online soon. Here's the website:  https://www.covidlonghaulers.com/

    Heres' the code I'm using to turn off some links in the desktop:
     

    <style>
      .header-nav-item:nth-child( 1 ) {
          display : none;
            }
      .header-nav-item:nth-child( 3 ) {
          display : none;
            }
      .header-nav-item:nth-child( 5 ) {
          display : none;
            }
      .header-nav-item:nth-child( 7 ) {
          display : none;
            }
      .header-nav-item:nth-child( 9 ) {
          display : none;
            }
      .header-nav-item:nth-child( 11 ) {
          display : none;
            }

       
      </style>

     


    Thank you!

  2. ThanksI have a need to hide certain items from the mobile hamburger menu, as I hide them from the desktop view. However the code to hide from desktop doesn't currently translate to mobile.  Could you help me fix this? I'm using 7.1.

    The pages that need to be hidden are currently turned off but will be turned online soon. Here's the website:  https://www.covidlonghaulers.com/

    Heres' the code I'm using to turn off some links in the desktop:
     

    <style>
      .header-nav-item:nth-child( 1 ) {
          display : none;
            }
      .header-nav-item:nth-child( 3 ) {
          display : none;
            }
      .header-nav-item:nth-child( 5 ) {
          display : none;
            }
      .header-nav-item:nth-child( 7 ) {
          display : none;
            }
      .header-nav-item:nth-child( 9 ) {
          display : none;
            }
      .header-nav-item:nth-child( 11 ) {
          display : none;
            }

       
      </style>

     


    Thank you!

     

  3. Site URL: https://www.covidlonghaulers.com/

     

    Hello!
    I have a need to hide certain menu links on different pages. I used the following code to achieve that on the desktop site. Everything works great! Though I also need to code the mobile page's hamburger to react the same way. My current workaround it to remove the hamburger and display the links. It's functional, but not good for style or functionality.

    I had hoped some form of this script would work - image.png.c7c752fdab9753e6af5ec110b87d4ffa.png 
    But unfortunately, it does absolutely nothing. What am I doing wrong? Below is the code that works for the desktop - and the mobile w/o out the hamburger.

    <style>

      .header-nav-item:nth-child( 2 ) {
          display : none;
            }
      .header-nav-item:nth-child( 4 ) {
          display : none;
            }
      .header-nav-item:nth-child( 6 ) {
          display : none;
            }
      .header-nav-item:nth-child( 8 ) {
          display : none;
            }
      .header-nav-item:nth-child( 10 ) {
          display : none;
            }
      .header-nav-item:nth-child( 12 ) {
          display : none;
            }
      </style

    image.png

  4. Site URL: https://www.covidlonghaulers.com/home

    Hello! Simple question in search of (I hope) a simple fix.
    I have a marketing pop up that I want to deploy on the homepage that asks visitors to choose if they are in the North America or Rest of the World b/c functionality and retail options will be different in North America. When I turn it on, it pops up on the homepage as it should.

    Great so far.

    If I select North America, the user gets directed to a slightly different version of the homepage - as it should.

    Still great news.

    If I select Rest of the World, I'll stay on the primary homepage but the pop-up keeps coming back in a loop. The only way to get out of it is to hit the X in the upper right.

    Why won't the pop up go away after I make the Rest of the World selection? How do I fix this?

    Thank you!

  5. I added <style> </style> to it and it works! That may have been obvious to you. 😉
    Now there is an clear spacing issue where the link is hidden. I'm sure that can be fixed too.

    <style> .tweak-global-animations-animation-type-flex .header-nav-item:not( .header-nav-item--folder ) [href="/collaborate"] {
      
      display : none;
      
      }</style>

     

    THANK YOU!

     

  6. Site URL: https://www.covidlonghaulers.com/

    I am expanding a website to have specific differences based on the users location. Based on selecting "North America" or "Somewhere Else" on a marketing popup, I will provide different resources. Therefore, I want to hide different navigation links on different pages. 

    I am using 7.1 Commerce plan and tried injecting the following code in to page headers, but nothing is happening:

    image.png.5c268e8a2a7b45c1010373d3aa121cd1.png

    What am I doing wrong?

     

    Thank you!

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