JiveDig
5/10/2013 - 7:29 PM

Remove default/stock/standard Genesis widgets

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' );
}