Centered Video on non self hosted version of wordpress
-
Is there a way to import a video with YouTube and have it show centered on your blog with the non-self-hosted version of WordPress? Here is how my video page looks now: http://apilt.wordpress.com/video/
The blog I need help with is: (visible only to logged in users)
-
YouTube videos are supposed to be centered. Unfortunately this works based on the default width of the main column: it doesn’t take into account the no-sidebar template. You can edit the page, switch the editor to Text (=code), and add this at the beginning:
<div style="width:611px;margin:auto;">
and this at the end:
</div> -
Thank you for the suggestion justpi. However, all that shows after doing that are hyperlinks to the videos on youtube. I am using the website version not the self-hosted version if that helps with clarification.
-
You’re welcome.
You should always prefer inserting the videos via the YT shortcode, not just by pasting the URL:
http://en.support.wordpress.com/videos/youtube/#embedding-with-a-shortcode -
OK.
I inserted using shortcode and set the alignment for center but, the videos are still left aligned. do i use the div style code mentioned above at this point or is there something else i should do given that i am using the website version instead of the self-hosted version of WordPress? -
I figured it out!!!!
I was putting the code in wrong. (figures)
so in the end it looks like this:
<div style=”width: 611px; margin: auto;”>[youtube=”link to video goes here”]</div>
Thank You for all your help justpi!!!!
- The topic ‘Centered Video on non self hosted version of wordpress’ is closed to new replies.