Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I would like to make page titles smaller on mobile so that it fits on one line, how do I do this?
Example below for Dried Wedding Flowers however I would like it done on every page where it doesnt sit on o
Solved! Go to the solution
This is an accepted solution.
Hey @umrraz90
Remove the previous code, and add this updated code with the same steps.
<style>
@media screen and (max-width: 767px) {
.page-title {
font-size: 28px !important;
}
.image-with-text__heading {
font-size: 18px !important;
}
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @umrraz90
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hi Moeed,
Its theflowerstudiobyroo.com
thank you
Hey @umrraz90
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) {
.page-title {
font-size: 28px !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Legend! it works for the page title, how would i do the same for the title lifes precious moments on the wedding page? ( I will mark as solution!)
This is an accepted solution.
Hey @umrraz90
Remove the previous code, and add this updated code with the same steps.
<style>
@media screen and (max-width: 767px) {
.page-title {
font-size: 28px !important;
}
.image-with-text__heading {
font-size: 18px !important;
}
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you so much!
Hello @umrraz90
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
and add this code at the end of the file.
.image-with-text__content > :first-child:is(.image-with-text__heading),
{
font-size: 21px !important;
}
and the result will be
If this was helpful, hit the like button and mark the job as completed.
Thanks
Hi @umrraz90
Would you mind to share your store URL? Thanks!
Thanks for the info, check this one.
@media only screen and (max-width: 749px){
h2.h1, .page-title, h1.h0 {
font-size: 25px;
}
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024