Jump to content

Need help changing background color on single section

Go to solution Solved by tuanphan,

Recommended Posts

I've removed the section background on mobile image using the following code:


@media screen and (max-width:767px) {
  [data-section-id="634993d2ea1d0dc070483cf3"]
.section-background{
 visibility: hidden; 
  } 
}

 

I'd like the background color for this section to be: 

#fba85b

 

I've tried just about every background-color combination, but can't figure it out. I had this all worked out but something on SQSP changed and caused a ruckus. Please help!

Screen Shot 2022-12-01 at 9.20.28 PM.png

Edited by Talisha_S
changed color code
Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

57 minutes ago, Talisha_S said:

I've removed the section background on mobile image using the following code:


@media screen and (max-width:767px) {
  [data-section-id="634993d2ea1d0dc070483cf3"]
.section-background{
 visibility: hidden; 
  } 
}

 

I'd like the background color for this section to be: 

#fba85b

 

I've tried just about every background-color combination, but can't figure it out. I had this all worked out but something on SQSP changed and caused a ruckus. Please help!

Screen Shot 2022-12-01 at 9.20.28 PM.png

We can achieve it by using Css code

Can you share your site with the protected password so I can take a look?

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, Keyword Highlighter
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
  • Solution

Try some code like this

@media screen and (max-width:767px) {
  [data-section-id="634993d2ea1d0dc070483cf3"] {
.section-background {
 visibility: hidden; 
  } 
&, .section-border {
background-color: #f1f !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
  • 2 weeks later...
On 12/2/2022 at 4:20 AM, Talisha_S said:

I've removed the section background on mobile image using the following code:


@media screen and (max-width:767px) {
  [data-section-id="634993d2ea1d0dc070483cf3"]
.section-background{
 visibility: hidden; 
  } 
}

 

I'd like the background color for this section to be: 

#fba85b

 

I've tried just about every background-color combination, but can't figure it out. I had this all worked out but something on SQSP changed and caused a ruckus. Please help!

Screen Shot 2022-12-01 at 9.20.28 PM.png

Hi,your website looks amazing now. May I ask, how did you manage to select different sections and then change their background colors?

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.