Jump to content

7.1 remove dropdown folder link autohighlight

Recommended Posts

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

I am trying to make folder dropdown menu where on hover item changes background to black and, therefore, text color to white. I have almost managed to achieve that, except whenever I am located within "Artists" which is a folder with 2 portfolio in it, if I hover over painting or sculptures, the text color turns grey. If im located in "home" and hover over the painting or sculptures, it works fine. The same thing happens if I remove all my css code, the dropdown links are highlighted grey only if I am currently within that folder. Basically, I am trying to get rid of this weird grey color and have it only be white text when I hover.  To summarize, the dropdown highlight behaves differently depending on my current location. I have a feeling this might be some weird squarespace built in feature and I gotta find out how to disable it.
This is my current code responsible for the color within dropdown menu:

.header-nav .header-nav-item--folder .header-nav-folder-content{
   padding: 0;
     .header-nav-folder-item{
       padding: .7em 1em;
    }
     .header-nav-folder-item:hover{
     background: black;
     a {color: white !important;}
   }
}

Link to comment
  • Replies 2
  • Views 882
  • Created
  • Last Reply

Try this

body[data-menu-overlay-theme-switcher="true"]:not(.header--menu-open) .header-nav-item--active a:hover {
  opacity: 1 !important;
}

image.thumb.png.ce6d5ba6d48db3606835c6490d4e8ba8.png

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
2 hours ago, bangank36 said:

Try this


body[data-menu-overlay-theme-switcher="true"]:not(.header--menu-open) .header-nav-item--active a:hover {
  opacity: 1 !important;
}

image.thumb.png.ce6d5ba6d48db3606835c6490d4e8ba8.png

it worked, thanks a lot, so yea, I guess I was right, squarespace had some weird default stuff going on

Link to comment

Archived

This topic is now archived and is closed to further replies.

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