I want to change the font size for mobile view only so it fits on one line instead of two. Example below. I would also like to center the announcement text “30 day growing guarantee”. Many thanks.
Website: https://prevailplants.com/
I want to change the font size for mobile view only so it fits on one line instead of two. Example below. I would also like to center the announcement text “30 day growing guarantee”. Many thanks.
Website: https://prevailplants.com/
Hi @bebop87 ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Inside head tags. You need create style tags. After insert my code inside style tag
@media only screen and (max-width: 767px) {
.m-hero__content .m-hero__title.h2 {
font-size: 31px !important;
}
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Hi @bebop87 ,
May I suggest to update code these steps:
@media(max-width: 749px){
.m-product-card__info .m-product-card__title {
white-space: nowrap;
font-size: 4vw;
}
}
Hello @bebop87
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi @bebop87
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Hello,
I am San from MS Web Designer.
Go to Themes > Edit code > Theme.liquid > at the bottom place this code before
Do let me know in case of any concerns.
Regards,
San