Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress: Remove not needed widgets from Genes framework by StudioPress
/**
* Unregister Genesis widgets
*
* Include in theme's functions.php or create your own functions plugin
* Comment out needed widgets
*/
function eid_rem_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' );
}
add_action('widgets_ini', 'eid_rem_genesis_widgets', 12);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.