Site logo

[Resolved] Archives – how to centre h3 titles for thumbnails?

Home Forums Support [Resolved] Archives – how to centre h3 titles for thumbnails?

Home Forums Support Archives – how to centre h3 titles for thumbnails?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2492359
    Mark

    Hi,

    How can I do this? I have an option to centre the images in the “customize > layout > blog” section, but can’t do anything with the text.

    I may also want to centre the excerpt text too, so if I can have the option to do that too would be great.

    Example URL in the Private box below

    Thanks 🙂

    #2492382
    Fernando
    Customer Support

    Hi Mark,

    You’ll need custom CSS. Can you try adding this through Appearance > Customize > Additional CSS?:

    body:is(.blog,.archive) header.entry-header {
        text-align: center;
    }
    
    body:is(.blog,.archive) .entry-summary {
        text-align: center;
    }

    Alternatively, you can use a Block Element – Content Template to have full control over the design of your articles in the Blog and Archive pages. Reference: https://docs.generatepress.com/article/block-element-content-template/

    #2492421
    Mark

    The code works! Thanks

    #2492449
    Fernando
    Customer Support

    You’re welcome, Mark!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.