How To Center YouTube Video In WordPressYou would like to align YouTube video in the word press that may be within the text or on the homepage, but after trying everything, it is not working at all.
Even after following the suggestions, you are unable to upload the video at the center. However, it is much easier than you might have thought by merely following the simple steps given below.
Alignment- A Default Setting
Generally, when you own a website in word press, you prefer the editing part on your own, maybe adding content or updating your product is simple and user friendly. The problem lies when you need to upload a video in the center of your website.
It is a setting by default after pasting a URL of the YouTube video. It automatically centers in your site but in the case is does not happen, means the auto-enable feature is disabled.
In case, the width of the video is less than the area it shall implant; it would align to the left as it is an external source and word press does not know the correct way you want to display.
It is annoying as there is no button or a feature to align in the centre as are for the images.
Also, the alignment of the video depends on the set up of your site and its theme. Follow the few simple steps, and you may master in aligning the video in future.
Few simple steps to get the video to the word press site
Firstly, go to the source that is YouTube and look for the video you would like to post, below which you may read, click the 'Share Button'.
Some options would pop up, and you need to select the 'Embed' option that follows with the embedded code. After copying the code, go to your word press website post.
The next step would be to switch from visual to text, which you may see at the top right-hand corner of your post.
Now after landing on the 'text' view, scroll and come where you need to place the video and paste the code that you had received from YouTube. Now you can see the video being implanting on the page, but it is towards the left because of the default setting.
You may increase the width of the video, but if you want to match with other images, which are not full screen, alignment of the video becomes a necessity. Visit hostingonecent.com for a video walkthrough that may assist you in a better way.
The final step
Now you need to place the video in the centre by adding a DIV and text-align center on both the sides of your video embedded code like <divMsoNormal"> By doing this, you are creating a perfect alignment of the video in the word press website.
It is quick and simple, and your video is at the centre that you may check by clicking on the 'Preview' button that ensures that your video is in the correct place.
Now you are free to change the sides of the video or shift towards right of left of the page. You may manually alter the content parameters according to the requirement of your page.
The above method is the most simple and quick way to centre YouTube video in your wordpress webpage.
|