Jump to content

Changing font color on mobile

Recommended Posts

Site URL: http://www.gluten-freevacations.com

Hi! I'm looking to change the font color for the main banner on www.gluten-freevacations.com to white on mobile only. I tried using the code below, but it isn't working. The gray font works well on desktop, but not on the mobile version just. Thoughts? thanks!


@media only screen and (max-width: 640px)


#block-8c4ddc5f83fc9ca29d3f p {color:#FFFFFF}

#block-8c4ddc5f83fc9ca29d3f h1 {color:#FFFFFF}
}

Link to comment
  • Replies 1
  • Views 1.7k
  • Created
  • Last Reply
1 hour ago, Ellen334 said:

Site URL: http://www.gluten-freevacations.com

Hi! I'm looking to change the font color for the main banner on www.gluten-freevacations.com to white on mobile only. I tried using the code below, but it isn't working. The gray font works well on desktop, but not on the mobile version just. Thoughts? thanks!


@media only screen and (max-width: 640px)


#block-8c4ddc5f83fc9ca29d3f p {color:#FFFFFF}

#block-8c4ddc5f83fc9ca29d3f h1 {color:#FFFFFF}
}

It already change to white on mobile, maybe you want to clear cache?

Note that you should add this to Design->Custom CSS

image.png.1aef7145ee5094946401953cfbc131a6.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

Archived

This topic is now archived and is closed to further replies.

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