Changing font colour on mobile only

Solved

Changing font colour on mobile only

lilyandsophia
Tourist
4 1 0

Hi all,

 

I know this has been asked 1000 times before, and I think I have tried my own edits of all 1000 responses, but no luck. 

 

I need to change the text colour in my Video Background sections to black - ONLY on mobile (keep white on desktop). It's the same reason as everyone else who asks this question - the text moves to a white background on mobile instead of being overlayed on top of the video.

 

I just can't seem to get it to work. Example here at the top:

https://www.lilyandsophia.com/pages/how-we-do-it 

 

Thank you so much in advance for your help. 

Accepted Solution (1)

Mateen_Asghar
Shopify Partner
43 1 7

This is an accepted solution.

Hi @lilyandsophia,
Follow these steps:
1. Go to Shopify Admin => Online Store => Theme => Edit code
2. Open your theme.css or base.css file & paste the code at the bottom of the file

 

@media screen and (max-width: 768px) {
.videoBoxInfoTitle, .videoBackground .imageBoxInfoDescription p {
color: #000 !important;
}

 

Mateen_Asghar_3-1736860477971.png

 

If you find this helpful, kindly like and mark it as an accepted solution.

Thanks!

Mateen Asghar | Shopify Expert & Partner
Optimizing Shopify Plus stores with 10+ years of web development expertise.
Got your answer? Mark it as an Accepted Solution to help others.
 Reach me at: mateen@100xelevate.com | Visit: 100xelevate.com for quick quotes and expert support.

View solution in original post

Replies 4 (4)

websensepro
Shopify Partner
1914 229 273

@lilyandsophia 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

@media(max-width:990px){
.videoBoxInfo .imageBoxInfoDescription p, .videoBoxInfo h1 {
    color: black !important;
}
}

Result:

websensepro_0-1736858675869.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
lilyandsophia
Tourist
4 1 0

None of these solutions worked 😞 Still white text.

 

The text colour selection is part of sections/background-video.liquid and I have selected white because that's what I want for the video on desktop. Might this be overriding all the css changes you are suggesting? 

 

Thanks for your continued support!

DaisyVo
Shopify Partner
4436 492 586

Hi @lilyandsophia 

 

I hope you are well. You can follow our instructions below:


1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

 

Here is the code for Step 3:

 

@media screen and (max-width: 768px){
body .videoBoxInfo .imageBoxInfoDescription p {
    color: black !important;
}
}

 

image (11).png


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

Mateen_Asghar
Shopify Partner
43 1 7

This is an accepted solution.

Hi @lilyandsophia,
Follow these steps:
1. Go to Shopify Admin => Online Store => Theme => Edit code
2. Open your theme.css or base.css file & paste the code at the bottom of the file

 

@media screen and (max-width: 768px) {
.videoBoxInfoTitle, .videoBackground .imageBoxInfoDescription p {
color: #000 !important;
}

 

Mateen_Asghar_3-1736860477971.png

 

If you find this helpful, kindly like and mark it as an accepted solution.

Thanks!

Mateen Asghar | Shopify Expert & Partner
Optimizing Shopify Plus stores with 10+ years of web development expertise.
Got your answer? Mark it as an Accepted Solution to help others.
 Reach me at: mateen@100xelevate.com | Visit: 100xelevate.com for quick quotes and expert support.