ThemeShaper Forums » Thematic


Un-register certain sidebars

(4 posts)
  • Started 11 years ago by dixhuit
  • Latest reply from Chris
  • This topic is resolved
  1. dixhuit

    Hi Folks.

    Love Thematic. Learning lots about filters for the first time. Having plenty of fun trying to inject post-thumbs and such.

    Question: How would I go about un-registering certain sidebars in order to tidy up the admin view for a client (they won't use anythng beyond Primary and Secondary). It would be nice to do something easily reversible so that I could re-register certain sidebars later if need be.

    Also - what's the best way to show off my finished Thematic site when it's done? Would love to see it flagged up on Twitter as 'another rocking site using Thematic' :)

    Posted 11 years ago #
  2. Hi,

    if you could wait for the upcoming Thematic 0.9.6 ..

    function remove_some_asides($content) {
    	unset($content['1st Subsidiary Aside']);
    	unset($content['2nd Subsidiary Aside']);
    	unset($content['3rd Subsidiary Aside']);
    	unset($content['Index Top']);
    	unset($content['Index Insert']);
    	unset($content['Index Bottom']);
    	unset($content['Single Top']);
    	unset($content['Single Insert']);
    	unset($content['Single Bottom']);
    	unset($content['Page Top']);
    	unset($content['Page Bottom']);
    	return $content;
    add_filter('thematic_widgetized_areas', 'remove_some_asides');

    You can test this code with a current SVN copy.

    Btw.: Don't use this with any conditional tags to remove a certain widget area on a certain page / post / whatever. The above mentioned method will prevent that the widget area is created. See the difference .. with it was created and then you had to unregister it again. Not very effective ;)

    Just drop a link so that we can see how it rocks :)


    Posted 11 years ago #
  3. dixhuit

    Cool, thanks for the tip. When will Thematic 0.9.6 be rolled out properly?

    Posted 11 years ago #
  4. On Saturday I'll send the package to Ian. He will throw it into the WordPress theme machinery. Don't know how long it'll take 'til it get its approval from


    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.