Shopify themes, liquid, logos, and UX
Hi all, as the title says I want to be able to change the font size. i'm surprised that some themes do not come with a simple font size function in the editor. Is this true or have i just missed it? Seems crazy.
Anyhow, assistance in making the font a couple px bigger for the mobile version of my site.
Thanks!
Solved! Go to the solution
This is an accepted solution.
For desktop, use the following:
@media screen and (min-width: 768px) {
html {
font-size: 18px;
}
}
For mobile use this:
@media screen and (max-width: 768px) {
html {
font-size: 18px;
}
}
My bad, had them mixed up, that should work!
Are you looking at increasing all the fonts available on the website by a few notch?
Yes, but mainly just the mobile site if that is possible.
Noted, would you mind sharing your store's preview password? This is not your account's password.
It is: leasho
Go to your theme.css file, and at the very end, add the following code:
@media screen and (min-width: 768px) {
html {
font-size: 18px;
}
}
Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!
Thanks for the response, I tried it but the font size still appears to be the same.
Also, how would i change the font size for the desktop version if I wanted to ?
This is an accepted solution.
For desktop, use the following:
@media screen and (min-width: 768px) {
html {
font-size: 18px;
}
}
For mobile use this:
@media screen and (max-width: 768px) {
html {
font-size: 18px;
}
}
My bad, had them mixed up, that should work!
Thank you, that worked!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024