[Resolved] How to center H1 in post?

Home Forums Support [Resolved] How to center H1 in post?

Home Forums Support How to center H1 in post?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #617201
    Oliver

    Hi!

    I am using GP version 2.1.3.

    I recently installed the page builder Thrive Architect and created my first post with it. Actually I redesigned an old post and I am going to redesign all my other older posts as well.

    Anyway, my post has a content layout without sidebar. For my content I used a content box from Thrive Architect and centered it. The width of the layout is 792 pixel.

    Here is the problem: The title which is generated by GP is not center aligend and it looks not cool on desktop. If I hide the H1 title and insert a custom H1 from Thrive Architect than there will be two H1 shown on the blog page.

    So my question is: How can I center the H1 title?

    I have added the link to the page so that you can take a look.

    Best,
    Oliver

    GeneratePress 2.1.3
    #617207
    David
    Staff
    Customer Support

    Hi Oliver,

    you can add this CSS:

    .entry-title {
    	text-align: center;
    }
    #617210
    Oliver

    Wow, that was a quick reply!

    Thanks David! It works. ๐Ÿ™‚

    Best,
    Oliver

    #617212
    David
    Staff
    Customer Support

    I am in a hurry lol
    You’re welcome

    #1048935
    James

    Hi, in addition to this (which was great, thank you) how do you then center the date and author?

    Many thanks,
    James

    #1048977
    Leo
    Staff
    Customer Support

    You could try just this:

    .entry-header {
        text-align: center;
    }
    #1048980
    James

    That’s great!

    Thanks Leo

    #1048982
    Leo
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.