How to change alignment of your post title

Themes which you can use in WordPress are different. You can use a standard one that comes with WordPress, create your own, find a free one among thousands available themes or purchase a premium one from the Internet. Just take a look at the list of the best WordPress themes for 2017.

Even if you have paid big bucks for your theme, it won’t have everything in reach of your hand and it’s impossible to incorporate everything into a user-friendly interface. So, if you want to change the alignment of your post titles and your theme doesn’t come with an easy-to-change option, you will have to do it yourself.

Prepare your tools and let’s loose some screws so you can get the job done. OK, this sounded like there are hours of work before you – don’t worry, you’ll be done in a minute or so.

It doesn’t matter which theme you’re using, a title for your post will be located in the same file:

    1. Navigate to Appearance->Editor
    2. On the right side, find Single Post file (single.php) and open it or even better, open the file in some external editor
    3. Search file for “<?php the_title(); ?>“
    4. Modify the tag with the desired alignment:


<div align="left"><?php the_title(); ?></div>


<div align="center"><?php the_title(); ?></div>


<div align="right"><?php the_title(); ?></div>
  1. Save changes

That’s it. Now you are free to open any of your posts and see the changes you have made. If you have followed the steps and changed alignment, your post title should appear in the left, center or right.

Working with WordPress is fun, isn’t it? If you want to learn more about blogging and customizing WordPress, see our resources and level up your webmaster skills in no time.


This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

Your email address will not be published. Required fields are marked *