Center "Posted on" and "Author" on an Post

Hello everyone,

I’m trying desperately to center “Posted on” and “Author” on a post. As you can see on my page here:

I managed to center the categories and title by adding the following custom css :

.single .entry-header {
text-align: center !important;

What I don’t understand is that “Posted on” (“Publié” in french) and the author name seem to be in the same “block” as the categories and title in the code, but it’s not centered. I tried a lot of other piece of CSS with no success.

Is there anything I am missing ? Any ideas ?

Thanks a lot for your help,

Hello Jérémy, try to add the following CSS code.

You can add CSS code in Customize → Additional CSS section.

.single .single-meta {
    margin-left: auto;
    margin-right: auto;

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

1 Like

Ahhhhhhhhh, it was the margins ! We should all have a Roman when working on CSS :smile:

Thanks a lot, it works perfectly,


Great! You are welcome Jérémy :slight_smile:

Kind Regards, Roman.