Skip to content

Instantly share code, notes, and snippets.

@spearsmarketing
Created May 9, 2013 17:35
Show Gist options
  • Save spearsmarketing/5549108 to your computer and use it in GitHub Desktop.
Save spearsmarketing/5549108 to your computer and use it in GitHub Desktop.
Unregister Default Genesis Widgets. Add to functions.php file.
/**** Unregister Genesis Widgets ****/
add_action( 'widgets_init', 'unregister_genesis_widgets', 20 );
function unregister_genesis_widgets() {
unregister_widget( 'Genesis_eNews_Updates' );
unregister_widget( 'Genesis_Featured_Page' );
unregister_widget( 'Genesis_Featured_Post' );
unregister_widget( 'Genesis_Latest_Tweets_Widget' );
unregister_widget( 'Genesis_Menu_Pages_Widget' );
unregister_widget( 'Genesis_User_Profile_Widget' );
unregister_widget( 'Genesis_Widget_Menu_Categories' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment