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!
Dropshipping, 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, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024