Shopify themes, liquid, logos, and UX
Hi,
I am trying to make the heading in the image with text section smaller so it doesn't get cut off, but I want to keep it the size it currently is on desktop. This is the code I am currently using in base.css but the mobile heading size doesn't seem to be changing.
Can anybody help?
TIA!
/* IMAGE WITH TEXT SIZE mobile */
@media all and (min-width: 750px) {
.image-with-text__heading {
font-size: 14px;
}
}
/* IMAGE WITH TEXT SIZE desktop */
.image-with-text__heading {
font-size: 28px;
}
}
Hi @visualess
- Go to Online Store -> Theme -> Edit code.
- Find the file assets/base.css and paste the code below at the bottom of the file.
/* IMAGE WITH TEXT SIZE - mobile */
@media all and (max-width: 750px) {
.image-with-text__heading {
font-size: 14px;
}
}
/* IMAGE WITH TEXT SIZE - desktop */
.image-with-text__heading {
font-size: 28px;
}
This is Richard from PageFly - Shopify Page Builder App
Hi @visualess Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>
@media all and (max-width: 767px) {
.image-with-text__heading {
font-size: 14px !important;
}
}
.image-with-text__heading {
font-size: 28px;
}
Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @visualess
Check this one.
/* IMAGE WITH TEXT SIZE mobile */
@media all and (max-width: 749px) {
.image-with-text__heading {
font-size: 14px;
}
}
/* IMAGE WITH TEXT SIZE desktop */
.image-with-text__heading {
font-size: 28px;
}
And save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024