Jump to content

Last child: unwanted button appearing on dropdown (but I do want it on secondary header nav)

Go to solution Solved by Beyondspace,

Recommended Posts

Hello,

all has been well on my header navigation, until I added a dropdown menu. I have a nice stylised button on my secondary header nav:

.Header-nav.Header-nav--secondary a:last-child {
    background: #f9faf5;
    color: #9f47d1;
    padding: 12px 15px !important;
    border-radius: 3px;
    border: 2px solid #9f47d1;
}

But when I added the dropdown menu, a button appears there as well. How to remove it and leave it just on header?

Link to the site:

www.glasbenasolamake.si

Also, how to make the dropdown to the left? On smaller screens, it goes to the right outside the screen, making it illegible.

Please help!

Thanks,

Maja

Link to comment
  • Solution
2 hours ago, MajaMaKe said:

Hello,

all has been well on my header navigation, until I added a dropdown menu. I have a nice stylised button on my secondary header nav:

.Header-nav.Header-nav--secondary a:last-child {
    background: #f9faf5;
    color: #9f47d1;
    padding: 12px 15px !important;
    border-radius: 3px;
    border: 2px solid #9f47d1;
}

But when I added the dropdown menu, a button appears there as well. How to remove it and leave it just on header?

Link to the site:

www.glasbenasolamake.si

Also, how to make the dropdown to the left? On smaller screens, it goes to the right outside the screen, making it illegible.

Please help!

Thanks,

Maja

Replace your above css with the following one

.Header-nav.Header-nav--secondary .Header-nav-inner > a:last-child {
  background: #f9faf5;
  color: #9f47d1;
  padding: 12px 15px !important;
  border-radius: 3px;
  border: 2px solid #9f47d1;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

For moving the sub header to the left, you can try

.Header-nav--secondary .Header-nav-item--folder:hover .Header-nav-folder {
  left: unset;
  right: 0;
}

Let me know how it goes on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

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.