Jump to content

Secondary nav gradient button on non background image pages only

Recommended Posts

Site URL: https://malenyvedicvillage.squarespace.com/

Hi community! I am wanting a gradient secondary navigation button to be featured only on pages with no background images. The below code works great for all pages, as in it changes the home page button as well. I don't want this to happen, I would like it to remain white, while the rest are gradient. pw : Maharishi

Thanks for any help 🙂

.Header-nav--secondary .Header-nav-item {
    background: linear-gradient(to right, #e4bc60, #b7812d) !important;
}

Screen Shot 2022-09-27 at 10.39.46 am.png

Screen Shot 2022-09-27 at 10.40.20 am.png

Screen Shot 2022-09-27 at 10.42.39 am.png

Link to comment
On 9/28/2022 at 1:20 PM, earthwindflowermoon said:

No not yet Tuanphan. I currently don't have the code pasted in custom css so homepage currently is correct (white button) while the rest of the pages are a plain gold - this is what I want to change - these other pages should be gradient.

Add to Design > Custom CSS

body:not(.homepage) nav.Header-nav--secondary a {
    background: linear-gradient(to right, #e4bc60, #b7812d) !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.