Skip to content

Instantly share code, notes, and snippets.

@prestonw
Last active May 14, 2019 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestonw/c80aaa85561f8a523cc0d947c92839ce to your computer and use it in GitHub Desktop.
Save prestonw/c80aaa85561f8a523cc0d947c92839ce to your computer and use it in GitHub Desktop.
bb_deregister_superfly_script
# 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