Visual Composer Javascript Error

These instructions only apply to versions prior to v3.0

The Conflict

If you are using the Visual Composer plugin with certain elements like the Progress Bar or Pie Charts, you’ll get a javascript error because “the sticky method does not exist in jQuery Waypoints”. This is because Visual Composer loads the Waypoints library via the wp_footer hook, which overrides UberMenu Sticky’s Waypoints; and since Visual Composer’s version of Waypoints doesn’t contain the sticky function, an error occurs.

Solution

The simplest way to resolve this is to re-enqueue the Sticky script so that it is loaded after Visual Composer’s.

Add this PHP to your theme’s functions.php to resolve the issue:

add_action( 'wp_footer' , 'um_override_waypoints' );
function um_override_waypoints(){
    wp_dequeue_script( 'sticky-js' );
    wp_enqueue_script( 'sticky-js' );
}

On this page