Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Unregister widgets from loading on your site using the Genesis Framework.
//* Do NOT include the opening php tag
//* 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 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