Created
June 3, 2020 14:23
-
-
Save KnightAlex/686d9eed5b46b71b7aad7e8b4eb474a0 to your computer and use it in GitHub Desktop.
Remove Storefront footer widget areas
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
//remove some widget areas | |
function lt_remove_some_widget_areas(){ | |
// Unregister some of the TwentyTen sidebars | |
unregister_sidebar( 'footer-1' ); | |
unregister_sidebar( 'footer-2' ); | |
unregister_sidebar( 'footer-3' ); | |
unregister_sidebar( 'footer-4' ); | |
} | |
add_action( 'widgets_init', 'lt_remove_some_widget_areas', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment