If your client isn’t going to be using one of the default widget area locations, or it doesn’t fit your design, they’re easy to remove. Simply use the
Once a widget area location has been removed with your single line of code, it’s default widget area will disappear from Appearance > Widgets. Also, it’ll no longer be available at Appearance > Widget Areas when using our widget areas plugin.
themeblvd_remove_sidebar_location( $id );
- (string) (required) The ID of the widget area location to be removed.
- Default: None
Let’s say we wanted to remove all of the collapsible widget area locations in the theme. First, you’d get their IDs from the table in the article, Widget Area Locations. Then we’d just use an instance of the function for each location.
themeblvd_remove_sidebar_location('ad_above_header'); themeblvd_remove_sidebar_location('ad_above_content'); themeblvd_remove_sidebar_location('ad_below_content'); themeblvd_remove_sidebar_location('ad_below_footer');