Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Well firstly the 16:9 min-height is working – if you look at the height allocated to each slide content , i.e. where the pagination dots are, you will see that it is allocating this space. Now you just need to get the the slide content (YT video) to use this space.

    Try inserting the following HTML into your slide for the YT video:

    <div>
    <iframe width=”100%” src=”https://www.youtube.com/embed/XXXXXXXXXX” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>
    </div>

    And then add the following CSS Style:

    #slider_425 .sa_hover_container div {
       position:relative !important;
    }
    #slider_425 .sa_hover_container div iframe{
        position: absolute !important;
        top: 0px !important;
        left: 0px !important;
        width: 100% !important;
        height: 100% !important;
    }

    This should do the trick.
    If you want to remove the padding around each slide, you can do this within the slider settings. Also the image in slide 1 does not look like its 16:9 – maybe use ‘slide backgrounds’ instead of ‘‘ (insert media) tags.

    Let me know how you get on.

    Thread Starter engbok

    (@engbok)

    I have added the css style to my theme via theme editor, I put at the bottom of css section.

    Then i write <div> and </div> before and after the iframe code of youtube video.

    Youtube video can’t display, please see the slide 2:

    https://uahmusic.com/

    • This reply was modified 4 years ago by engbok.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video Height different in tab/phone/PC’ is closed to new replies.