WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. meetwp
    Member
    Posted 2 years ago #

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

    Thank you

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

  2. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. Dirk S
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.