How can I change the font color on mobile view?

Solved

How can I change the font color on mobile view?

diamors
Excursionist
20 0 3

Hello, 

 

I am looking for some help with changing the color for the "image with text overlay section."

 

I had changed the header to white for the desktop view, but I wanted to change the mobile view to black so It is visible. I have attached some screenshots to help explain what I am talking about. 

diamors_0-1683918651570.png

diamors_1-1683918657598.png

 

 

The link to the website page is. 

 

https://clairamor.com/pages/halo-engagement-rings

 

Any help is greatly appreciated!

 

Thank you,

 

Cameron

 

 

Accepted Solution (1)

shreyhweb
Shopify Partner
709 118 133

This is an accepted solution.

@diamors 

 

Please add the below code above </body> in theme.liquid

 

online store >> edit code >> theme.liquid

 

<style>
@media screen and (max-width: 767px) {
h1.overlay-text__title {
color: #000!important;
}
.overlay-text__rte.rte.large-text p {
color: #000!important;
}
}
</style>

 

after added looks like that

shreyhweb_0-1683922187256.png

 

if our solution helpful for you then please like the post and tap on accepted.

 

if you discuss further information related with shopify you can contact us 

 

Thankyou 🙂

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com

View solution in original post

Replies 5 (5)

shreyhweb
Shopify Partner
709 118 133

This is an accepted solution.

@diamors 

 

Please add the below code above </body> in theme.liquid

 

online store >> edit code >> theme.liquid

 

<style>
@media screen and (max-width: 767px) {
h1.overlay-text__title {
color: #000!important;
}
.overlay-text__rte.rte.large-text p {
color: #000!important;
}
}
</style>

 

after added looks like that

shreyhweb_0-1683922187256.png

 

if our solution helpful for you then please like the post and tap on accepted.

 

if you discuss further information related with shopify you can contact us 

 

Thankyou 🙂

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
diamors
Excursionist
20 0 3

Hello, 

 

Thank you for the reply! This worked for the majority of my pages. For my homepage, there was an issue with the smaller text still having the white font on mobile. Is it my Custom CSS thats causing an issue? Here is the link to the page 

https://clairamor.com/

diamors_0-1683927661621.png

 

 

Made4uo-Ribe
Shopify Partner
9615 2290 2851

Hi @diamors , 

Its possible because of the costum css..

Here are some css style to change into balck text. 

@media only screen and(max-width: 767.98px){
.overlay-text__rte.rte p {
    color: black;
}
}

Result. 

Rose_Dim_0-1683962784367.png

I hope it help.

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

Made4uo-Ribe
Shopify Partner
9615 2290 2851

Hi @diamors , 

I understand that you want to change the color for the "image with text overlay section."

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "theme.scss.liquid" or "styles.scss.liquid" file, depending on which file your theme uses to store its CSS styles.
  4. At the bottom of the file, add the following CSS code:
  5. And Save.

 

@media only screen and(max-width: 767px) {
.overlay-text__rte.rte.large-text p {
    color: black;
}
h1.overlay-text__title {
    color: black !important;
}
}

 

  • Result: Rose_Dim_0-1683926781987.png

     

  • I hope it help. 
If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

diamors
Excursionist
20 0 3

I fixed the problem of the text not changing on my homepage. It was because I had deselected "enlarge font" for the image with text overlay section.