Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author pupunzi

    (@pupunzi)

    You are getting a javascript error:
    TypeError: document.getElementById(…) is null

    that probably is blocking the player too.

    Thread Starter Gbn1

    (@gbn1)

    Ok thank you, do you know how to fix this?

    Plugin Author pupunzi

    (@pupunzi)

    the error is fired by the show_search() that presumes a search input with ID “s” in the page:

    function show_search()
    {
    document.getElementById('s').value = 'Search';
    document.getElementById('s').onclick = function(){clicked_search()};
    }

    It should first verify that the search input exist:

    function show_search()
    {
    if(!document.getElementById('s'))
     return;
    document.getElementById('s').value = 'Search';
    document.getElementById('s').onclick = function(){clicked_search()};
    }

    bye,
    M

    Thread Starter Gbn1

    (@gbn1)

    Hello, thank you for your tips.

    I followed this and completed it, but the plugin still doesn’t seem to work on this page.

    Could you advise me any further as to how to fix it?

    Many thanks, G.

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    You still have serious problems on the DOM tree structure…

    There are three HTML tag opens displaced into the page; no one close where it should; the BODY tag is closed at the end of the page….
    The WP PHP “footer” init event is not fired at all so the YTPlayer initializer script is not prined out…

    So it would have been a miracle if it worked ??

    I would suggest to change the theme or fix those errors and then see if it works; if it doesn’t I’ll check why.

    Bye,
    Matteo

    Thread Starter Gbn1

    (@gbn1)

    Hi Matteo-

    Sorry to keep bothering!

    I have made the recomended changes, and still it is not working.

    Will you take another look and help me fix it again?

    Many thanks!

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    I can see the background video now, but you set the autoplay property to false; that’s why it doesn’t start playing. Set it to true and the video will start playing.
    However You still have double HTML declaration in your pages…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘mb.YTPlayer not displaying’ is closed to new replies.