[Resolved] JS code causing an error

Home Forums Support JS code causing an error

  • This topic has 3 replies, 2 voices, and was last updated 10 months ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1077226
    Rudy Vaughn

    Hi,

    Apologize in advance if details on this got posted twice.

    I’m using the latest GP theme and Beaver Builder on a new site. I’m using BB to create a video background row and it isn’t working. I contact BB support and received the following response and I’m wondering if this bug is GP related?

    There is a JS error caused by some custom code.

    Error is: Uncaught TypeError: $(…).GenerateMobileMenu is not a function.

    Caused by this in the footer:

    <script>

    jQuery( document ).ready( function( $ ) {

    $( ‘#mobile-header .menu-toggle’ ).GenerateMobileMenu();

    });

    </script>

    BB support said that if that is fixed then the background video should work as expected.

    #1077237
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    GenerateMobileMenu is a very, very old function which is no longer supported.

    Can you make sure you’re using the latest versions of GP and GPP?

    Let me know 🙂

    #1077248
    Rudy Vaughn

    Thanks Tom! It was an outdated version of GPP.

    #1078234
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.