Last active
May 14, 2019 16:14
-
-
Save prestonw/c80aaa85561f8a523cc0d947c92839ce to your computer and use it in GitHub Desktop.
bb_deregister_superfly_script
This file contains 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
# Deregister the Superfly script when the Beaver Builder editor is open. Add to your themes function.php or create a plugin. | |
add_action('wp_enqueue_scripts','bb_deregister_superfly_script'); | |
function bb_deregister_superfly_script(){ | |
if (class_exists('FLBuilderModel')&&FLBuilderModel::is_builder_active()){ | |
wp_deregister_script('sf_main'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment