• Resolved saccageparis

    (@saccageparis)


    Hello,

    So I was annoyed at the default size and alignment in Gutenberg as its normal and large size are not the ones i want and it was extremely tedious to change each paragraph with a 19.2px size as I can’t select multiple blocks to change justify/font size…

    So after some search, I realized I could apply some basic CSS in the customize panel of Astra theme (free version). It’s important to know I’m a newbie in that field and although I understand a tiny bit CSS, and did some significant internet search, you’ll have to treat me as a newbie 🙂 So here is my CSS:

    /*Changes the size and alignement of Posts text*/
    
    .type-post
    p {text-align: justify;
    font-size: 19.2px;
    }
    /*Changes the size and alignement of Lists in Post*/
    li {text-align: justify;
    font-size: 19.2px;
    }
    /*Changes the size and alignement of image caption text (TEst)*/
    .wp-block-media-text 
     p {
    	text-align: justify;
    	font-size: 23px;}

    I used the first instructions to change alignement & size on Blog post & page, and added one for a list block. Both worked great until I tried ot add column widgets for recent articles or search, as everything was the same size as the blog paragraph. I do understand why it happens but I’m not capable of fixing it…

    The last one did not work. I was trying to change the text font size of the “Media & Text” block but since it’s by default on “Large Size”, it seems my CSS cannot override it. I believe it’s what happens in my issue above as none of the widgets have a default size setting, so they align on my code. Maybe? I know I can add CSS codes directly to each block but that would be a nightmare to do all of them…

    Also, I have trying to find a way to add some spacing between each post on the blog page but, as you can guess, my CSS skills extremely basic…

    In any case, help would be appreciated as I spent already hours trying to figure this out. Thanks in advance !

    • This topic was modified 2 years, 6 months ago by saccageparis.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support David Smith

    (@get_dave)

    Hi @saccageparis

    It sounds like you are using the Astra WordPress theme? Have you tried reaching out to the Theme authors for support as it’s likely they will be best placed to help you.

    I tried a quick search on their support forums and found this page which might help.

    I’m not sure if this is a Theme that supports Global Styles and the Site Editor (ie: “Full Site Editing”), but if it does then it should be possible to configure font sizes across your site from the Gutenberg UI.

    If not then your best bet is custom CSS or asking your Theme author for support. One option might also be adding theme support for custom font sizes.

    If your custom CSS isn’t overriding the default styles then you’ll need to increase its specificity by applying more/different types of selectors.

    I’m going to close this one out as I believe this relates more to the Theme than the Gutenberg Plugin.

    All the very best of luck with your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Help: Issues with font size & alignment in Gutenberg for Blogs posts/page’ is closed to new replies.