WordPress.org

Ready to get started?Download WordPress

Forums

mb.YTPlayer for background videos
[resolved] Wrong layer (3 posts)

  1. igreenleigh
    Member
    Posted 1 year ago #

    When I use the shortcode on a page or post, I get the video in fullscreen, blocking the content. In other words, it completely overlays and does not allow access to the post or page content. See example here.

    Thanks- really excited about the potential for this plugin!

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

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    In your CSS file you have a property that is conflicting with the component behaviour:

    #fondo {
    background-image: url("../images/fondo.png");
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -100 !important;
    }

    If you remove the z-index propery or set it to 0 then it works as it should.
    The video player has a z-index of 0 and is the first element in the DOM tree, so it should be placed on the back of the other elements. But if you have any element in the page with a negative z-index, this element will be placed behind the player.

    Hope this helps you,
    Bye,
    Matteo

  3. igreenleigh
    Member
    Posted 1 year ago #

    That worked, thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.