Ricey Posted July 26, 2023 Share Posted July 26, 2023 Hey!! 🙂 I am using 7.1 I have an issue with Blog post font size on mobile. The H1 is massive. I found this below, .blog-item-title h1.entry-title {font-size:31px !important} /* CSS FOR MOBILE */ @media only screen and (max-width: 640px) which changes the H1 on mobile but also desktop which I do not want. Also, the H1 is now smaller than H2 which looks weird. How can I adjust H1, H2, H3, H4,H5 font sizes on mobile without effecting desktop sizes.  Thanks John aka Ricey Link to comment
tuanphan Posted July 27, 2023 Share Posted July 27, 2023 Use this code @media screen and (max-width:767px) { h1 {font-size: 30px !important;} h2 {font-size: 20px !important;} h3 {font-size: 10px !important;} h4 {font-size: 50px !important;} h5 {font-size: 60px !important;} }  Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Ricey Posted July 27, 2023 Author Share Posted July 27, 2023 Thanks, I'll try it now 🙂  Link to comment
Ricey Posted July 27, 2023 Author Share Posted July 27, 2023 The Mobile view looks great!! Thanks so much!! 🙂  Anything that can be done with the desktop version? H1 is smaller than H2 see pic attached. Thanks again Link to comment
Ricey Posted July 27, 2023 Author Share Posted July 27, 2023 I just noticed that the mobile code has effected the regular pages but I only need the adjustment code for the Blog pages Is there a code that specifies blog only ?? Plus not effecting the desktop blog as well @media screen and (max-width:767px) {    h1 {font-size: 28px !important;}    h2 {font-size: 20px !important;}    h3 {font-size: 15px !important;}    h4 {font-size: 10px !important;}    h5 {font-size: 8px !important;} Link to comment
tuanphan Posted July 28, 2023 Share Posted July 28, 2023 With desktop, use this @media screen and (min-width: 768px) { h1 {font-size: 30px !important;} h2 {font-size: 20px !important;} h3 {font-size: 10px !important;} h4 {font-size: 50px !important;} h5 {font-size: 60px !important;} }  Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment