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?

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

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

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.