Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is there any code I can use so my heading on my homepage doesn't get reformatted on Mobile?
Desktop:
Mobile:
Solved! Go to the solution
This is an accepted solution.
@wymonster Here is what you should do:
@media screen and (max-width: 767px) {
h2 {
font-size: 25px;
}
}
See screenshot below:
If this helped please make sure to like it and mark it as solution
Kind regards,
Mark
Hey @wymonster
Share your Store URL and Password if enabled.
Best Regards,
Moeed
Hi @wymonster ! There are a couple things that could help fix this. Could you please share your store URL and password if required?
Kind regards,
Mark
I am not willing to give someone access to the backend of my website
@wymonster Sorry for the misunderstanding, that is not what I was asking. Essentially what I am asking is if you could share a "preview" URL to view the frontend of your site. Sometimes stores that are still in development mode have a preview that is password restricted. This is completely separate from your back end.
Hey @wymonster
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
h2.banner__heading.inline-richtext.h0 {
font-size: 25px !important;
}
}
</style>
NOTE: Adjust this font size accordingly to however you like
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
@wymonster Here is what you should do:
@media screen and (max-width: 767px) {
h2 {
font-size: 25px;
}
}
See screenshot below:
If this helped please make sure to like it and mark it as solution
Kind regards,
Mark
Thank you!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025