How To Center the Header Title on Pages?

Hi

How do I center the Title for all my pages and blog posts?

They are all currently aligned left and I can’t find anything on the forum or settings to edit this

Please look at the example below:

Thanks

Hello @shayanqadir,

Thanks for writing in!

There is no option in the theme that allows you to center the page and post titles. You need to add CSS code into X > Theme Options > CSS to be able to center the page and post titles in your site.

You need to use the Google Chrome Developer Toolbar to check the live HTML code and find which CSS selector you need to use.

The page and post titles are using entry-title CSS class. Therefore a proper CSS selector for centering the page and post titles will be:

.entry-title {
  text-align: center;
}

Feel free to add whatever CSS code you like inside the selector. I added a text-align: center; to align the title element to the center. To learn more about the “text-align” CSS property, please check this out:

Here are some related links for further reading, this could help you in finding and implementing some CSS fixes:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.