Video.js - HTML5 Video Player for WordPress
[Plugin: VideoJS - HTML5 Video Player for WordPress] Center video (4 posts)

  1. meetwp
    Posted 4 years ago #

    I can't find any options that would allow videos to be centered.

    Thank you


  2. Dustin Lammiman
    Plugin Author

    Posted 3 years ago #

    Try adding class="aligncenter" to your shortcode. Or class="centervideo" and in your css file: .centervideo { margin: 0 auto }

  3. Dirk S
    Posted 3 years ago #

    Hi Dustin,
    tried that, however - before the div video wrapper is another div:
    <div style="max-width:640px;>"

    I think I need to be able to add centering here. With adding aligncenter to my shortcode, I only center the video in the left aligned wrapper.

  4. Dirk S
    Posted 3 years ago #

    OK. I did a workaround by adding a class to the responsive video div wrapper mentioned. But I needed to make the change directly in video-js.php ... maybe you can add a class to it in a next release? So everyone can style positioning when using responsive settings.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Video.js - HTML5 Video Player for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.