Skip to content

Instantly share code, notes, and snippets.

@asadowski10
Created March 16, 2017 16:44
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asadowski10/bd12c86dfbe2a6af2168760a12032ac9 to your computer and use it in GitHub Desktop.
Save asadowski10/bd12c86dfbe2a6af2168760a12032ac9 to your computer and use it in GitHub Desktop.
Fix Conflict between Yoast SEO and VC Grid Builder
<?php
/**
* @source : https://github.com/Yoast/wordpress-seo/issues/6219
**/
add_action( 'vc_backend_editor_render', 'bea_fix_conflict', 9999 );
function bea_fix_conflict() {
wp_dequeue_script( 'vc_vendor_yoast_js' );
if ( wp_script_is( 'yoast-seo-post-scraper' ) ) {
wp_enqueue_script( 'vc_vendor_yoast_js', vc_asset_url( 'js/vendors/yoast.js' ), array( 'yoast-seo-post-scraper' ), WPB_VC_VERSION, true );
}
}
@puregraphx
Copy link

+1 for this fix

@pasog
Copy link

pasog commented Nov 16, 2017

sorry .. i did not understand where to use this function?
you can help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment