- This topic has 21 replies, 4 voices, and was last updated 6 years, 9 months ago by Leo.
-
AuthorPosts
-
September 3, 2017 at 9:05 am #378348CRISTO
I know there was some discussion earlier about titles, but I want to reduce the text size on all of my mobile site. I use a large font (18px) on my desktop version, but want to make it smaller on mobile.
I think you have probably suggested a way to do this, but cannot find it.
September 3, 2017 at 5:23 pm #378538LeoStaffCustomer SupportHi there,
Instead of
px
in the HTML style, try usingem
instead.Let me know if this helps.
September 3, 2017 at 8:27 pm #378571CRISTOWill that change only my responsive site? I want to stick with 18 px in my desktop version.
September 3, 2017 at 10:55 pm #378615TomLead DeveloperLead DeveloperYou’ve added the font size directly to the elements using inline styles, which means we can’t change it on mobile.
Instead of adding inline styles, use the font size option in Customize > Typography > Body.
That way we can add a little piece of CSS to change it on mobile.
September 4, 2017 at 12:41 am #378667JoergI have the same “problem” as Cristo Rey. New website (koenigsbrief.de) with big 18px font on the destop version, but I would like to use 14 or 16px on mobile.
I doesn´t any inline styles, but used the font size option in Customize > Typography > Body.
Would you like to send me the CSS code to change the size on mobile, too?
September 4, 2017 at 5:17 am #378760CRISTOThanks, Chris. I am not sure where to go next. Am I going to have to change each page on my site, or just the settings? I have changed the settings to Customize>Typography>Body>Helvetica>normal>18 px. I think I had that in the beginning, but when I start to add a page it does not have those automatically. I have to change the font to 18 px for the body, and then for H2 I have to change that as well.
Since I don’t understand inline styles, I am probably doing something wrong. Anyway, no rush….enjoy labor day!
September 4, 2017 at 9:14 am #378913LeoStaffCustomer Support@Chris – Since you are not using inline style, try this CSS:
@media (max-width: 768px) { body { font-size: 14px; } }
Adding CSS: https://docs.generatepress.com/article/adding-css/
@Cristo – Inline style means you are adding style directly to the HTML like this:<span style="font-size: 18pt;">hy?</span>
September 4, 2017 at 9:19 am #378919CRISTOWell, Leo, thanks but still not sure what I can do. When I go to add, or edit, a page the tiny mce editor gives me Georgia 12 pt as a default. So what I have doe is changed that on each page to Helvetica 18px. I suppose that was not the right thing to do, but I don’t ever mess with code…it is well above my skill level.
Probably a result of not really understanding WordPress in the beginning, so I can live with 18 px on the mobile if I have to, but would have preferred to make it smaller. I have around 750 pages, so not worth my time if I have to go in and change each one.
September 4, 2017 at 9:26 am #378929JoergPerfect!
Thank you 🙂
September 4, 2017 at 9:54 am #378943TomLead DeveloperLead DeveloperCristo – if you go into your page and click the “Text” tab, you’ll see tons of references to 18px or 18pt. These references overwrite the GeneratePress options you’ve chosen in the Customizer.
The easiest way to overcome this is to copy all of your text on that page (on the live website), then paste it into your editor in the “Text” tab. This will strip all of those inline styles.
Then you can go into the Visual editor and do things like bold words, add links etc.. Just be sure not to change the size of the text inside the editor – let GeneratePress do that for you.
September 4, 2017 at 11:45 am #379052CRISTOThanks, Tom As usual you are a great help. Somehow I know you just couldn’t take labor day off. Just so I understand….I open up my live page, and then basically delete the current page on my site, then paste it into the text tab on tat page. That page will still have the same titles, permalinks, links shortcodes, whatever? Just do that to each page? Ugh..I just checked, I have 828 pages, but I can do this a little at a time I suppose. Going to give it a try right now.
September 4, 2017 at 1:59 pm #379098CRISTOThanks again for the help everyone. Guess I should have known this from the beginning….as of now I will just stick with the larger font on mobile. To change over 800 pages, re-create links, etc. would literally take a couple of months and I don’t see that being worth it at this time.
September 4, 2017 at 10:28 pm #379242TomLead DeveloperLead DeveloperUgh, yea – it becomes a big problem when there’s that many pages.
Doing my method removes all formatting, including links, headings etc.. So it may not be the best method if you have a lot of those things.
From now on, you can check the Text tab and make sure things look relatively clean. There should be little to no
<span>
elements 🙂September 5, 2017 at 6:00 am #379463CRISTOThanks, Tom. I like my layout, so it is not a killer if it is a little too large on mobile. Love using GP by the way. btw, I went through this once when I transferred my old site from Homestead over to WP and GP. Took me almost two months, so not about to try that again.
September 5, 2017 at 10:15 am #379641TomLead DeveloperLead DeveloperFair enough! Glad you’re enjoying GP 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.