Jump to content

Custom Body Color per section

Recommended Posts

Site URL: https://sphere-onion-lxxn.squarespace.com

Hello! 

I'm looking to customize the body color of any section I need.

I'm working with slanted section dividers, but since I want to have a very dynamic color scheme, the slants reveal a body color that I'm not interested in. See screenshot for example of problem. I want that light grey to be the dark green of the top section. 

This i want to do with multiple section accross the website, so I need this solution 🙂 

Website: https://sphere-onion-lxxn.squarespace.com/ 

Password: squarespace123

 

Thanks!

section color.JPG

Link to comment
  • Replies 8
  • Views 858
  • Created
  • Last Reply

Top Posters In This Topic

Hey @tuanphan,

No I havent, I just removed the spot, as I had to show my client my progress. 

Website: https://sphere-onion-lxxn.squarespace.com/ 

Password: squarespace123

On the website, you can see the example of the problem on the 'test page'. I attach a screenshot. I need the yellow area to become dark blue, like the section i'm trying to connect with. 

Code I'm using: 

#collection-612cd88262aa021891e29d74 { 
  #page .page-section:nth-of-type(3) { 
    -webkit-clip-path: polygon(0 0, 100% 16%, 100% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 16%, 100% 100%, 0% 100%);
  } 
}

 

area prom.JPG

Link to comment

try

[data-section-id="enter id here"] .section-background {
	background-color: #f1f2f3 !important;
}

Find data section id with this tool https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 9/5/2021 at 5:08 AM, tuanphan said:

try

[data-section-id="enter id here"] .section-background {
	background-color: #f1f2f3 !important;
}

Find data section id with this tool https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

Hey @tuanphan,

 

Sadly, It doesn't work. This targets the background color, which is just the front color of the section. I need to change the  body color.

That's the color behind the section background color, if i make a clipping path of a shape of a section.. 

Any ideas?

This color changes sitewide if i change the middle palette color. But I want to manually change it per section, to make a more vibrant design.. 

Anele

Link to comment
  • 2 weeks later...
  • 7 months later...

Hi @Anele0610, @tuanphan

Just reaching out to see if you ever solved this? I really need to do the same as am also using clip paths and need to target the body color exactly as you are describing. I can do the whole lot but not per section / per body. Help!

Thanks in advance! 🙂

Will.

Edited by Will77
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.