Jump to content

Different dropdown background color for each navigation folder?

Go to solution Solved by Beyondspace,

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
  • Solution
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, 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.