Site logo

Archived topic

Archives - how to centre h3 titles for thumbnails?

3 replies · Started by Mark on January 11, 2023

Viewing posts 1–4 of 4

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 :)

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/

The code works! Thanks

You're welcome, Mark!

This archived topic is closed to new replies.