Skip to content

Instantly share code, notes, and snippets.

@katlove
Created August 28, 2016 04:21
Show Gist options
  • Save katlove/43c3fe2168d4706a8318887e0c31c56e to your computer and use it in GitHub Desktop.
Save katlove/43c3fe2168d4706a8318887e0c31c56e to your computer and use it in GitHub Desktop.
Remove Presets on Beaver Builder Child Theme
<?php
// Remove all of the Beaver Builder child theme presets
//(does not remove default as you should overwrite default with your child theme's default settings)
function es_remove_presets()
{
FLCustomizer::remove_preset( 'default-dark' );
FLCustomizer::remove_preset( 'classic' );
FLCustomizer::remove_preset( 'modern' );
FLCustomizer::remove_preset( 'bold' );
FLCustomizer::remove_preset( 'stripe' );
FLCustomizer::remove_preset( 'deluxe' );
FLCustomizer::remove_preset( 'premier');
FLCustomizer::remove_preset( 'dusk' );
FLCustomizer::remove_preset( 'midnight' );
}
add_action( 'after_setup_theme', 'es_remove_presets', 11 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment