Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Unregister widgets from loading on your site using the Genesis Framework.
<?php
//* 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
Something went wrong with that request. Please try again.