WordPress.org

Forums

mb.YTPlayer for background videos
[resolved] How to make background of custom div (2 posts)

  1. ewroman
    Member
    Posted 2 years ago #

    Is it possible to make custom div's background not back of body?

    http://wordpress.org/extend/plugins/wpmbytplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    Yes, it's possible. It is not documented as it presumes you are a little bit more confident with the HTML DOM structure. You can find documentation (related to the jQuery plug-in) here:
    https://github.com/pupunzi/jquery.mb.YTPlayer/wiki

    You should not use the shortcode method but directly write the DOM constructor in the content editor as follow:

    <div id="P1" class="movie" style="display:block; margin: auto; background: rgba(0,0,0,0.5)" data-property="{videoURL:'http://www.youtube.com/watch?v=l_tHTmd5pgk',containment:'#containmentID',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"></div>

    Where "containmentID" is the ID of the DOM element where you whant to play the movie.

    Bye,
    Matteo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.