Support » Plugin: Video Background » Videos wont play with current theme

  • Resolved Microsmith

    (@microsmith)


    Hiya.

    For some reason i cannot get the videos to play on my current theme. If i switch to a different theme. (standard one from the wordpress repo) the video will play. from what i can see the video isn’t loading at all, its always loading the fall back image. again tho, if i switch themes the video loads and plays, i cannot get my head around it.

    Could you have a look at see what im doing wrong?

    The link is here.

    http://michael-stuart.co.uk/

    Thanks very much 🙂

    https://wordpress.org/plugins/video-background/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Blake

    (@blakedotvegas)

    Hi Microsmith,

    I took a look at your site and the video seems to be playing just fine.

    Did you resolve this issue?

    Regards,
    Blake

    Hiya Blake. Thanks for coming back to me.

    No. i never worked it out. what ive done in the mean while is converted the video to a GIF, then loaded the GIF as the fall back image. the video still wont load.

    If you are able to have a look again, i will change the fall back image to JPG.

    Mike.

    Plugin Author Blake

    (@blakedotvegas)

    Hi Microsmith,

    Sure will! Please change it back and I’ll take a look.

    Regards,

    Plugin Author Blake

    (@blakedotvegas)

    Microsmith,

    I’ve found the problem. It looks like there is a javascript function that is placing a div around <video> elements to create a 16:9 aspect ratio. Here is the element that it is adding:
    <div class="embed-responsive embed-responsive-16by9">

    You will find the code that does this on line 168 of customscripts.js in your theme. I would suggest either removing it or adding an if statement that says something along the lines of “if video is not in .vidbg-container then wrap”.

    Please let me know if this solves your issue!

    Regards,
    Blake

    Hiya Blake

    Thank you very much. that did the trick 🙂 Fantastic plugin!

    Plugin Author Blake

    (@blakedotvegas)

    Hi Microsmith,

    I’m glad that did it 🙂

    Thanks for the kind words, have a great day!

    Regards,
    Blake

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Videos wont play with current theme’ is closed to new replies.