Shopify themes, liquid, logos, and UX
Hi,
I want to reduce the size of my collection title in my collection page on mobile only. (I want it to be at 20px)
Thanks
Solved! Go to the solution
This is an accepted solution.
Remove previous code and add this code:-
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
@media screen and (max-width: 768px) {
.collection-hero__title {
font-size: 20px !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello @imazele
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
.collection-hero__title {
font-size: 20px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
On mobile only not on desktop please!
This is an accepted solution.
Remove previous code and add this code:-
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
@media screen and (max-width: 768px) {
.collection-hero__title {
font-size: 20px !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello,
Please share "Store URL"
Thanks!
Hi @imazele '
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:767){
.collection-hero__title {
font-size: 20px !important;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025