Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'd like to increase the font size of the text on my banner image - both the headline and the caption - on desktop but not on mobile.
Is anyone able to help me with how to code this please?
I found this elsewhere and tried, but it didn't change anything.
.banner-section .content .title {
font-size: 25px!important;
}
Thanks for any help.
Solved! Go to the solution
This is an accepted solution.
Hello,
Add this css at the bottom of
Online Store->Theme->Edit code->Assets->timber.scss.liquid
@media only screen and (min-width: 768px){
#shopify-section-160860061017de4874 .banner-image .headline {
font-size: 3em !important;
}
#shopify-section-160860061017de4874 .banner-image .caption {
font-size: 1.5em !important;
}
}
This is an accepted solution.
Hello,
Add this css at the bottom of
Online Store->Theme->Edit code->Assets->timber.scss.liquid
@media only screen and (min-width: 768px){
#shopify-section-160860061017de4874 .banner-image .headline {
font-size: 3em !important;
}
#shopify-section-160860061017de4874 .banner-image .caption {
font-size: 1.5em !important;
}
}
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > timber.scss.liquid and paste this at the bottom of the file:
@media only screen and (min-width: 768px) {
.banner-image .headline {
font-size: 30px!important;
}
.banner-image .caption {
font-size: 17px!important;
}
}
Perfect, thank you so much.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024