How to center post title and meta box

  • Author
    Posts
  • #55758
    KevinD
    Power User

    I would like to be able to adjust css to have the post titles and author-date information centered rather than left justified.

    Thanks

    Website: kevindelaplante.com

    • This topic was modified 6 years ago by KevinD.
    #55781
    Zed
    Cryout Creations mastermind

    You can do that with CSS:

    h2.entry-title, .entry-header .entry-meta {
        text-align: center;
    }
    .entry-header .entry-meta > span {
        display: inline;
        float: none;
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #55793
    KevinD
    Power User

    Thank you very much! This worked perfectly.

    #55796
    KevinD
    Power User

    Actually I think that was hasty. It seems to work on the homepage, but not on the individual post pages.

    Website: kevindelaplante.com

    #55801
    KevinD
    Power User

    Still need help with this. I appreciate your time!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to center post title and meta box’ is closed to new replies.