How to remove widget areas from the backend?

You might want to remove a widget area from the backend, because it is not needed for your child theme. Or you don’t want a customer to mess with it.

Just copy the following code into your child theme’s functions.php:

function remove_widgetized_area($content) {
	unset($content['Secondary Aside']);
	return $content;
}
add_filter('thematic_widgetized_areas', 'remove_widgetized_area');

Here’s a list of the default widget areas:

  • ‘Primary Aside’
  • ‘Secondary Aside’
  • ’1st Subsidiary Aside’
  • ’2nd Subsidiary Aside’
  • ’3rd Subsidiary Aside’
  • ‘Index Top’
  • ‘Index Insert’
  • ‘Index Bottom’
  • ‘Single Top’
  • ‘Single Insert’
  • ‘Single Bottom’
  • ‘Page Top’
  • ‘Page Bottom’

Please use the ThemeShaper Forums for any further questions.

This entry was posted in Widget Area and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted February 24, 2011 at 9:28 pm | Permalink

    If you want to remove ALL sidebars, just make the function return null:

    function remove_widgetized_area($content) {
    return null;
    }

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More in Widget Area (3 of 3 articles)