All things Shopify and commerce
Hello guys, how can I change the size of this title only for mobile users?
Solved! Go to the solution
This is an accepted solution.
<style>
@media screen and (max-width: 767px) {
#shopify-section-template--24466088821068__main .product__title h1 {
font-size: 2.6rem !important;
}
}
</style>
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
This is an accepted solution.
<style>
@media screen and (max-width: 767px) {
#shopify-section-template--24466088821068__main .product__title h1 {
font-size: 2.6rem !important;
}
}
</style>
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Hello Mustafa_Ali thank you so much that had solved my problem!
hey @NikosBat thank you for your response if you need more help feel free to share it
Hex Mustafa_Ali, can I somehow apply this size for all my products? Now its only applied on the specific one
Hex Mustafa_Ali, can I somehow apply this size for all my products? Now its only applied on the specific one
<style>
@media screen and (max-width: 767px) {
.product__title h1 {
font-size: 2.6rem !important;
}
}
</style>
hey @NikosBat just removed the previous code that i give to you
add a new code then you problem is solved
Hello Mustafa_Ali and thanks for replying, that code does nothing if I paste it above the body part.
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