WordPress.org

Support

Support » How-To and Troubleshooting » Center Title In Pages

Center Title In Pages

  • If you take a look you can see all the pages under “Content” have the title in them placed left. How can I center them all?

    I asked this once before in an old post but got no answer so I’m giving it another shot.

    Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add this to your themes style.css:

    .posts h2 { text-align: center; }

    jkeyes – Thanks, that syntax definitely does work, only I just want the page titles centered, not the posts. With that code it’s an overall shift. Any ideas?

    That shouldn’t center the posts as well as it only selects the h2 tag.

    To make it more precise you could add a class=”post_title” to your title h2, and change the CSS rule to:

    .post_title { text-align: center; }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Center Title In Pages’ is closed to new replies.