• Resolved ThierryLalandre

    (@thierrylalandre)


    Hi i have a little problem with the metaslider plugin
    it work fine into a single page, no problem.

    But when it is in the footer (bottom left corner), publish on each page, it work fine only on my home page on the other page my browser says “Uncaught TypeError: undefined is not a function”

    i use metaslider 2.8.1
    my dev website is host at this url http://91.121.181.143/dk7h8klm68/

    if you have a idea, i will be very happy. thanks a lot

    https://wordpress.org/plugins/ml-slider/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ThierryLalandre

    (@thierrylalandre)

    So
    I found a little tips I created a useless slide of 2px on 2px
    with 2 white images.
    and i publish this slide on each page and then the slideshow in the footer works fine.. (function call problem ?!?).

    Matcha Labs should be make a litlle update of their plugin

    have a nice day cya

    Hi Thierry,

    This is a problem with your theme, not Meta Slider.

    Please see this page, under “Undefined is not a function”

    http://www.metaslider.com/documentation/troubleshooting/

    Regards,
    Tom.

    Thread Starter ThierryLalandre

    (@thierrylalandre)

    Hi Tom,

    I checked that,
    I have the call to the function wp_footer() in my file footer.php
    I only including jQuery once on the page
    and I load jQuery 1.11.1 on Google’s CDN

    but I must use my little tips ortherwise it didn’t work.
    Have you try to put a metaslider in the file footer.php after the <?php wp_footer() ?>

    Have a nice day cya mate and thanks for your quick answer 😉

    wp_footer() is the only place we can output scripts dynamically – we can’t output scripts wherever we want.. only where WordPress lets us.

    Check the page template you’re using is also including the footer file, something like this:

    <?php get_template_part(‘footer’); ?>

    If wp_footer() is not executed on the page (for whatever reason) then WordPress won’t be able to output the JavaScript and you’ll get that undefined is not a function error. There’s nothing we can do about that from our end sorry, you just need to check your theme is correct 🙂

    Regards,
    Tom.

    Thread Starter ThierryLalandre

    (@thierrylalandre)

    Sorry you right
    I moved <?php wp_footer() ?> at the end of my footer.php and it works fine!! no more need of my tips 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘meta slider doesn't work in my footer’ is closed to new replies.