When you are using a base files of Twenty ten theme to create a new theme and you want to remove unwanted Footer widget areas , so You can do that with using short php code in your Function.php file.
To remove The Widget of secondary Footer Area, First Footer Area, Third Footer Area From Theme, add the Following Code in your function.php file.
function remove_widget_area() {
unregister_sidebar( 'secondary-widget-area' );
unregister_sidebar( 'first-footer-widget-area' );
unregister_sidebar( 'second-footer-widget-area' );
unregister_sidebar( 'third-footer-widget-area' );
unregister_sidebar( 'fourth-footer-widget-area' );
}
add_action( 'admin_init', 'remove_widget_area');
That's it , You can Remove the Footer Widget as per your Need ...
To remove The Widget of secondary Footer Area, First Footer Area, Third Footer Area From Theme, add the Following Code in your function.php file.
Add This Code in Function.php
function remove_widget_area() {
unregister_sidebar( 'secondary-widget-area' );
unregister_sidebar( 'first-footer-widget-area' );
unregister_sidebar( 'second-footer-widget-area' );
unregister_sidebar( 'third-footer-widget-area' );
unregister_sidebar( 'fourth-footer-widget-area' );
}
add_action( 'admin_init', 'remove_widget_area');
That's it , You can Remove the Footer Widget as per your Need ...
Comments
Post a Comment