If you are running your own blog on WordPress CMS and you use embedded videos from YouTube, probably you’ve encountered with an issue when you insert the YouTube embed code into your post it is aligned to the left. Obviously there are cases when it is embedded with customized settings, especially if your CMS was tweaked or you are using custom made theme. But, if you are a beginner blogger or you do not have the necessary technical skills or you have no opportunity to apply for technical support?
So, there is a solution that will help you to embed YouTube video for your WordPress blog post with central alignment. The solution is pretty simple.
Use this code when you place your embed code:
Just open the “Text” tab of your post editor and place this code when you want your video to appear. Obviously you may change its location later.
After that copy the embed code for your YouTube video and paste it substituting “embed-code” in the provided code.
In addition, if you change the text center to right or left, you can align your video to the right or to the left correspondingly.
Voila! Now your embedded YouTube video is center aligned in your post.
If this small tips has helped you, please share this with your friends. Stay tuned for new tips&tricks for photographers, videographers and bloggers.