Remove Widget Area Location

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 themeblvd_remove_sidebar_location() function.

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.

Usage
themeblvd_remove_sidebar_location( $id );
Parameters
$id
(string) (required) The ID of the widget area location to be removed.
Default: None
Note: Trying to figure out the ID of the default widget area locations in the framework? See the default locations table in the article, Widget Area Locations.
Examples

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');