Lego2012
12/13/2016 - 2:43 PM

Remove default/stock/standard Genesis widgets

Remove default/stock/standard Genesis widgets

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

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