Author heidiph1
2019
5
Premium
Rank 5417

Hello!

If you'd like a quick video walk-through, I show each of these steps in the video above. If you'd like to just read through quickly, I've written the steps out below!

The quick code:

Add to the beginning of the code <center>

Add to the end of the code </center>

For awhile now, I have had a hard time figuring out how to center an image or text that was created using an html block in the Gutenberg editor in Wordpress. I wanted to be able to center it whether I was using one column or more!

Here's the simple answer! I hope this will save you some frustration and time. :)

How To Center Text in HTML:

1. Click on the html button so you can see the html code for the item you have put in.

2. Place your cursor at the very beginning of the code and add <center>

3. Place your cursor at the very end of the code and add </center>

4. Click Preview. You should now see the image or text you have placed in the box is centered!

If this was helpful, please hit like and share it with others! Feel free to ask any questions or leave any comments below.

Thanks for stopping by!

Heidi :)

Join the Discussion
Write something…
Recent messages
briandaniel Premium
This helps a lot for html ads. Thanks for sharing this
Reply
heidiph1 Premium
You’re welcome! I’m so glad it helped!
Reply
Keny44 Premium
Great training you have here. Well done.
Reply
heidiph1 Premium
Thank you! I hope it will be useful!
Reply
Keny44 Premium
Yea. It is useful. Well done.
Reply
Dave07 Premium
Hi Heidi
Another great training video.
I've never had to do this but it's good to know what to do as I'm sure it'll crop up some time in future.

Thanks
Dave
Reply
heidiph1 Premium
Thanks! Yes, you can tuck it away for future use :)
Reply
Isaiah14 Premium
I see the point now for using the <center> code. I am wondering why that html block doesn't have the paragraph alignment option for centering as the regular text, as you've mentioned in the video.

Thanks for the tutorial, Heidi.

Isaiah 😊
Reply
heidiph1 Premium
I've wondered the same thing! It may be my inexperience still, but I can't seem to find the same paragraph alignment option for the HTML block. Hopefully this will offer another option in the meantime:)

Thanks Isaiah!
Reply
Top