Created
May 10, 2013 19:29
-
-
Save JiveDig/5556796 to your computer and use it in GitHub Desktop.
Remove default/stock/standard Genesis widgets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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