Created
March 16, 2017 16:44
-
-
Save asadowski10/bd12c86dfbe2a6af2168760a12032ac9 to your computer and use it in GitHub Desktop.
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 ); | |
} | |
} |
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
+1 for this fix