Home Forums WoodMart support forum Uncaught TypeError: a(…).waypoint is not a function

Uncaught TypeError: a(…).waypoint is not a function

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #126628

    tdegenhardt
    Participant

    Experiencing the following error that is preventing certain elements from loading on a page (https://bit.ly/2Kd56I5)

    Uncaught TypeError: a(…).waypoint is not a function
    at Object.onePageMenu (theme.min.js?ver=3.7.0:33)
    at Object.init (theme.min.js?ver=3.7.0:33)
    at HTMLDocument.<anonymous> (theme.min.js?ver=3.7.0:35)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

    I have disabled all plugins and it does not go away. It seems to be a problem in the theme.

    #126640

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to fix this http://prntscr.com/nr8vh5

    wp_enqueue_script( 'woodmart-waypoint', 'https://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.2/waypoints.min.js', array( 'jquery' ), woodmart_get_theme_info( 'Version' ), true );

    This will be fixed in the nearest update

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)