YouTube Lyte Plugin - Centering a video

2 replies
  • WEB DESIGN
  • |
How do you center a video using the YouTube Lyte plugin?

There isn't an option to do this using the YouTube Lyte widget. Ive tried doing it using the text widget by putting the code below, but it just showed the URL when i visited the site, instead of showing the video.

<center>httpv://www.youtube.com</center>

I also tried this code, but it didn't work either.

<div style="text-align: center;">httpv://www.youtube.com</div>
#centering #lyte #plugin #video #youtube
  • Profile picture of the author LA Grouch
    You can use <div align="center"> in the HTML editor.

    Keep in mind that if you switch to the Visual editor... WP will revert this back to <div> and you'll have to go back to HTML and redo it.

    WP is coded to "clean" HTML it doesn't like.
    {{ DiscussionBoard.errors[4140321].message }}
    • Profile picture of the author cooler1
      Originally Posted by LA Grouch View Post

      You can use <div align="center"> in the HTML editor.

      Keep in mind that if you switch to the Visual editor... WP will revert this back to <div> and you'll have to go back to HTML and redo it.

      WP is coded to "clean" HTML it doesn't like.
      Im putting the code in a widget, not HTML editor. Should it work in a widget also?

      I put the following code in a text widget, but it doesn't show the video instead it just shows the video URL on the site.

      <div align="center">httpv://www.youtube.com</div>
      Signature

      {{ DiscussionBoard.errors[4164341].message }}

Trending Topics