How do it set custom CSS for image banner text, mobile view

Solved

How do it set custom CSS for image banner text, mobile view

maisongreen_03
Tourist
10 0 5

Screenshot 2024-11-21 at 9.51.41 PM.png

I want to edit the size of the text (give customers details about the banner... etc), using custom CSS. However, I only want it smaller in the mobile view, but to remain the same size it is now in desktop view. Is this possible with custom CSS function?

Accepted Solution (1)
topnewyork
Astronaut
1368 165 224

This is an accepted solution.

1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom

 

@media (max-width: 768px) {
div#Banner-template--18470079725786__image_banner_ERxkAT
.banner__text.rte.body{
	    font-size: 14px !important;
} 
]

 

Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
7520 2032 2498

Hey @maisongreen_03 

 

Add your CSS in this media query in the Custom CSS option and it will work for mobile only.

@media screen and (max-width: 767px) {

}

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


topnewyork
Astronaut
1368 165 224

Hello, 

Please share "Store URL"

Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
maisongreen_03
Tourist
10 0 5

https://maisonmidori.com/

pw: matchadoin

topnewyork
Astronaut
1368 165 224

This is an accepted solution.

1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom

 

@media (max-width: 768px) {
div#Banner-template--18470079725786__image_banner_ERxkAT
.banner__text.rte.body{
	    font-size: 14px !important;
} 
]

 

Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month