Jump to content

Different dropdown background color for each navigation folder?

Recommended Posts

Hi there, I'm looking to change the background color of each individual drop-down folder in my navigation menu. This code changes the color for all the folders:

.header-nav-folder-content {

   background: #F7D4AA !important;

}

But I'd like to have a different color for each folder when it drops down. My website is not published but here's a screenshot to show what I'm talking about (when I hover over "Yums")

 

Screen Shot 2021-01-15 at 4.25.02 PM.png

Link to comment
  • Replies 2
  • Created
  • Last Reply
9 hours ago, sarah_lmey said:

Hi there, I'm looking to change the background color of each individual drop-down folder in my navigation menu. This code changes the color for all the folders:

.header-nav-folder-content {

   background: #F7D4AA !important;

}

But I'd like to have a different color for each folder when it drops down. My website is not published but here's a screenshot to show what I'm talking about (when I hover over "Yums")

 

Screen Shot 2021-01-15 at 4.25.02 PM.png

You can take note of the folder slug url and use it to identify different folder, below code change color of the folder with url slug /abouts

.header-nav-folder-title[href*="/abouts"] + .header-nav-folder-content {
  background-color: red !important;
}

image.png.0c499e9719e49dfa8c8a128263c6e5cc.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

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.