Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@puregraphx puregraphx commented May 10, 2017

+1 for this fix

@pasog

This comment has been minimized.

Copy link

@pasog 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