Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created May 10, 2013 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JiveDig/5556796 to your computer and use it in GitHub Desktop.
Save JiveDig/5556796 to your computer and use it in GitHub Desktop.
Remove default/stock/standard Genesis widgets
<?php
// Remove eNews and Updates widget
add_action( 'widgets_init', 'remove_enews_updates_widget', 20 );
function remove_enews_updates_widget() {
unregister_widget( 'Genesis_eNews_Updates' );
}
// Remove Featured Page widget
add_action( 'widgets_init', 'remove_featured_page_widget', 20 );
function remove_featured_page_widget() {
unregister_widget( 'Genesis_Featured_Page' );
}
// Remove Featured Post widget
add_action( 'widgets_init', 'remove_featured_post_widget', 20 );
function remove_featured_post_widget() {
unregister_widget( 'Genesis_Featured_Post' );
}
// Remove Latest Tweets widget
add_action( 'widgets_init', 'remove_latest_tweets_widget', 20 );
function remove_latest_tweets_widget() {
unregister_widget( 'Genesis_Latest_Tweets_Widget' );
}
// Remove User Profile widget
add_action( 'widgets_init', 'remove_user_profile_widget', 20 );
function remove_user_profile_widget() {
unregister_widget( 'Genesis_User_Profile_Widget' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment