Shopify themes, liquid, logos, and UX
Hello guys!
My image hero text has the right size for the desktop version but for the mobile version it goes on 2 lines and it's awfull!
What is the code to reduce de size of the font but only for the mobile version please!
The image hero is on the Catering secti
URL:
Password: brayden
Here are some images with the example of what it does on desktop version and on mobile version.
Thnak you in advance!
Solved! Go to the solution
This is an accepted solution.
Hey @abailea077
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.image-hero__text-container-heading.ff-heading.fs-heading-display-2.section-blocks__heading {
font-size: 40px !important;
padding: 5px 30px !important;
}
}
</style>
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.
Hey @abailea077
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.image-hero__text-container-heading.ff-heading.fs-heading-display-2.section-blocks__heading {
font-size: 40px !important;
padding: 5px 30px !important;
}
}
</style>
RESULT:
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! This was very helpfull!
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hi @abailea077
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
@media only screen and (max-width: 350px){
#shopify-section-template--23117743325485__image_hero_kcGQPH h2 {
font-size: 40px !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024