Created
March 16, 2017 16:44
Fix Conflict between Yoast SEO and VC Grid Builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry .. i did not understand where to use this function?
you can help me?