Change the size of the text in some sections only on mobile

Solved

Change the size of the text in some sections only on mobile

Ogap31
Shopify Partner
15 0 1

Hello !

 

I would like to change the text size on these sections on my homepage, only on the mobile version of my site. I've tried to c/c code snippets in the theme.css to change the font size but nothing works.

Do you know how I could do it?

 

Section1.PNG

Section2.PNG

 

Here is my website : https://archi-v.myshopify.com/

 

Thank you in advance for your help!

 

Hugo

Accepted Solution (1)

made4Uo
Shopify Partner
3873 718 1221

This is an accepted solution.

Hi @Ogap31,

 

You are having hard time changing the font size because you use !important. One of the code is in the custom.css file under the Asset folder. (See image below)

made4Uo_0-1665172327640.png

 

You can add the code below to replace the code when it is on mobile.

 

 

1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the theme-index.min.css
3. Paste the code below at the very bottom of the file.

 

For the header:

NOTE: Replace the 25px to the size you want. 

 

 

@media only screen and (max-width: 768px) {
.sitewide--title-wrapper h2.homepage-sections--title {
  font-size: 25px !important;
}
}

 

 

 

For the paragraph:

NOTE: Replace the 20px to the size you want. 

 

 

@media (max-width: 768px){
.rte.featured-row__subtext.textarea p {
    font-size: 20px !important;
}
}

 

 

 

 

 

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

View solution in original post

Replies 2 (2)

made4Uo
Shopify Partner
3873 718 1221

This is an accepted solution.

Hi @Ogap31,

 

You are having hard time changing the font size because you use !important. One of the code is in the custom.css file under the Asset folder. (See image below)

made4Uo_0-1665172327640.png

 

You can add the code below to replace the code when it is on mobile.

 

 

1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the theme-index.min.css
3. Paste the code below at the very bottom of the file.

 

For the header:

NOTE: Replace the 25px to the size you want. 

 

 

@media only screen and (max-width: 768px) {
.sitewide--title-wrapper h2.homepage-sections--title {
  font-size: 25px !important;
}
}

 

 

 

For the paragraph:

NOTE: Replace the 20px to the size you want. 

 

 

@media (max-width: 768px){
.rte.featured-row__subtext.textarea p {
    font-size: 20px !important;
}
}

 

 

 

 

 

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
Ogap31
Shopify Partner
15 0 1

Thank you very much for your help, indeed I was not adjusting the lines in the right file.

Thanks again, it works perfectly now! 🙂