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 ); | |
} | |
} |
This comment has been minimized.
This comment has been minimized.
sorry .. i did not understand where to use this function? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
+1 for this fix