How to Center Text in WordPress easily

How to Center Text in WordPress

2 minutes read


This article will be a full guide to teach you How to Center Text in WordPress.

Users of WordPress can effortlessly center text in WordPress as any Word Editor, such as MS Word or Google Docs. The WordPress post editor contains a rich text toolbar that helps you format your text view with a few mouse clicks.

What is Text Alignment?

Text alignment is a program for word processing, allowing users to align text in a page/document horizontally. It allows a text document to be written using various positions in the text of the whole or chosen section of a page.

To match the text, the cursor or text aligns mainly with the various margins of the paper. Four different types of alignment features are available, such as:

  • Right alignment: This begins with each new line of the paper at the right end of the page.
  • Left alignment: As the default line in most text handling applications, any line begins on the left margin.
  • Center alignment: This places and begins the center-middle margin on each new line/text block.
  • Justified alignment: It aligns the text with the left and right margins and aims to fill the empty area. It makes a direct border on the two horizontal edges of the page.

How to Center Text in WordPress?

You can follow these simple methods to align your text to the center position. These are some method you can follow:

Method 1: Using WordPress Block Editor

You can easily select the “Align Text Center” option from the block editor.

How to Center Text in WordPress

This will easily align your text to center. If you use Classic Editor here is a simple method for you.

Method 2: Using WordPress Classic Editor

If you use Classic Editor as your WordPress Primary Editor, steps are similar. You just need to toggle the option as shown in the image below.

How to Center Text in WordPress

This is the method we recommend for Classic Editor WordPress users. Moreover, the next method is for the person who must have some basic knowledge about coding and programming.

Method 3: Using CSS Code

The code for the central text for CSS property is as follows:

p { text-align: center; }

Here is the HTML code to center text/video/images in WordPress:

<div align="center"> ENTER TEXT / IMAGE / VIDEO </div>

This is the shortest and most comfortable method to place the above codes to easily align the text to the center position.

Video tutorial

Sum Up

Congratulations, you have finally learned How to Center Text in WordPress. Moreover, some of the visitors also asked us about How to Add Meta Tags in WordPress. Do check the dedicated article on this.

If you enjoyed this post, subscribe to our WordPress video tutorials on YouTube Channel. Remember to follow us on Pinterest.

We accept any type of suggestions from the visitors because it always motivates us to improve. Feel free to comment below.

What do you think?

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Related Articles