Trying to change the text colour on slideshow for mobile only - Stiletto theme

Solved

Trying to change the text colour on slideshow for mobile only - Stiletto theme

HJC
Tourist
5 0 2

I'm wondering if anyone can help me (I'm using Stiletto theme 3.3.0).  I'm trying to change the text colour to white of only one section (slideshow) on mobile version only. I want to keep the desktop version in a dark colour as it works better, but you can't read it on the mobile version.

 

I've tried using @media queries code in Assets > theme.css. It changes just the mobile version but it also changes all the heading text throughout the site, whereas I only want to change the font colour of one section on the homepage (mobile version only).

 

Ideally I would like to find some code that I can use in the custom css for the slideshow section, but the @media queries don't seem to work there. Any suggestions? I'm not very experienced at coding so some easy instructions would be amazing! Thank you.

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

I would need your store URL, I try to use the Stiletto theme in  the demo but im not sure if it work.

  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 "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.slideshow-slide__text-container-inner {
    color: red;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1740752848628.png

    If this one doesn’t work, please share your store URL. We can’t help you if we can’t see the problem.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @HJC 

Please, share your store URL. Thanks!

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.
HJC
Tourist
5 0 2

Hi @Made4uo-Ribe 

I have managed to change the mobile heading colour only using the below code, but I can't work out how to change the accent text. Do you know what code I should use for this? Please could you add to the below code if you do, thank you! The screenshot shows the heading text I've successfully changed to white, but the smaller text above I can't work out.

 

@media only screen and (max-width: 640px) {
#shopify-section-template--24442038813051__slideshow_Ec9drk {
h2 {
color: #FFFFFF;
}

IMG_3859.jpg

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

I would need your store URL, I try to use the Stiletto theme in  the demo but im not sure if it work.

  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 "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.slideshow-slide__text-container-inner {
    color: red;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1740752848628.png

    If this one doesn’t work, please share your store URL. We can’t help you if we can’t see the problem.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
HJC
Tourist
5 0 2

Thank you, I added that into my code and it worked!

ParseLab_Viyana
Shopify Partner
34 0 1

Hello @HJC , Can you please share your store URL?

Emmy_Viyana | PARSELAB
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Checkout our app:Inkybay
HJC
Tourist
5 0 2

Hi @ParseLab_Viyana 

I have managed to change the mobile heading colour only using the below code, but I can't work out how to change the accent text. Do you know what code I should use for this? Please could you add to the below code if you do, thank you! The screenshot shows the heading text I've successfully changed to white, but the smaller text above I can't work out.

 

@media only screen and (max-width: 640px) {
#shopify-section-template--24442038813051__slideshow_Ec9drk {
h2 {
color: #FFFFFF;
}

IMG_3859.jpg