Shopify themes, liquid, logos, and UX
Hello there, it's me again.
How do I change the font size of the heading "Shipping" together with all other pages like "About" and "Contact" to the font size of the title in Product? I tried adding the code
.header__menu-item {
font-size: 5rem;
}
to base.css but it seems to fix the size when viewed in mobile as well so it becomes so much bigger than the title in Product when using mobile version.
Is there a way I can set to a specific defined size so that it automatically switch to the font size of Product regardless of using web version or mobile version? Any help would be much appreciated. Thanks a lot guys.
https://summerizeint.myshopify.com/pages/shipping
password: skaung
Solved! Go to the solution
This is an accepted solution.
Hii,
Desktop code
h1.main-page-title.page-title.h0 {
font-size: 5rem;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->base.scss.liquid
its desktop view
Mobile view code
@media only screen and (max-width: 480px){
h1.main-page-title.page-title.h0 {
font-size: 4rem;
}}
Add this css at the "@media only screen and (max-width: 480px)" of Online Store->Theme->Edit code->Assets->base.scss.liquid
Mobile view
h1.main-page-title.page-title.h0 {
font-size: 3rem;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->base.scss.liquid
Thanks for your reply bro. But I am afraid that you are not solving my problems. First, the size in your code is not the size I want because it is much smaller on the title of this page. Second, even if the size is correct in the desktop version, it still doesn't solve the problem of viewing in mobile version. Are there possible codes to solve these 2 problems?
This is an accepted solution.
Hii,
Desktop code
h1.main-page-title.page-title.h0 {
font-size: 5rem;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->base.scss.liquid
its desktop view
Mobile view code
@media only screen and (max-width: 480px){
h1.main-page-title.page-title.h0 {
font-size: 4rem;
}}
Add this css at the "@media only screen and (max-width: 480px)" of Online Store->Theme->Edit code->Assets->base.scss.liquid
Mobile view
Thanks for the help bro. It worked!
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