How to Center YouTube Embed on a WordPress Post
This might seem like a very small thing, but it actually comes up quite often with people depending on how your WordPress site is setup and what theme you are using. And that is the question of how to center YouTube embed on your post. I am personally a big fan of centered images and so to have a YouTube video embedded and left aligned just looks off. Follow the quick steps below on how to center your YouTube videos. How to Center YouTube Embed
By default in WordPress when you paste the URL of a YouTube video it should be centered as it uses the default WordPress embeds feature. But this is not always the case. And some WordPress owners have the auto embed featured disabled. Sometimes using the embed code from YouTube can give you more control.
Step 1
If you click on a YouTube video you can grab the “Embed” code as seen below.
Step 2
In your WordPress editor you will want to click into the “Text” tab so that you can insert code.
Step 3
Paste the embed code into the WordPress editor. Example:
Source: https://managewp.org/articles/13736/how-to-center-youtube-embed-on-a-wordpress-post
source https://williechiu40.wordpress.com/2016/11/01/how-to-center-youtube-embed-on-a-wordpress-post/