Site logo

Archived topic

JS code causing an error

3 replies · Started by Rudy Vaughn on November 25, 2019

Viewing posts 1–4 of 4

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.

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 :)

Thanks Tom! It was an outdated version of GPP.

No problem :)

This archived topic is closed to new replies.