23 responses to “Disable widget areas (sidebars) without touching theme templates”

  1. Stephen Cronin

    Simple, but great!

    To be honest, I’d hack the theme files and create a mess. I’m really going to try to use functions.php more often now (and move some of my custom plugins into there as well). Thanks for showing the way…

  2. Eduardo Larequi

    Good work, Justin. For some weeks, I had been looking for an easy and understandable explanation of this technique (my skills in PHP are very limited) in order to apply it to my blog. I’ve just published an article with a demonstration: Desactivar la barra lateral sin tocar las plantillas de WordPress. Thank you very much.

  3. Paul

    http://www.livexp.net/wordpress/remove-widget-areas-without-editing-wordpress-template.html

    Dear Justin

    Today I come across the article ( link above) that is exactly like yours in this post.
    So, this is just to let you know.

    I have been reading your blog for awhile and using your wptheme (hybrid) and
    It’s the greatest wptheme around. I admire the way you write code.
    I hope you keep up the good work and be more success in the future.

    Paul

  4. links for 2009-03-19 « On New Media

    [...] Disable widget areas (sidebars) without touching theme templates (tags: wordpress howto widget widgets arb) [...]

  5. WordPress-10 Exceptional WordPress Hacks | Why? Nowhy! DFdou's Blog

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  6. 10 Exceptional WordPress Hacks | Bookmarks

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  7. 10 Exceptional WordPress Hacks « the gypsy

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  8. 10 Cool WordPress Hacks | Knowledge Base eDynamo

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  9. 10 Hacks Per Wordpress Gratis | Sbloggando

    [...] VAI AL SITO » Condividi e Diffondi: [...]

  10. 10 New Wordpress Hacks | Themeflash

    [...] Disable widget areas (sidebars) without touching theme templates Hello Friends! We Regularly post Tutorials, Freebies, Inspirations and other Useful Design Resources.If you are new here, Make sure to Subscribe to our RSS Feed for more Updates. It’s FREE [...]

  11. The Frosty @WPCult

    Wonder how I can disable just one widget on a certain page..

  12. 70 Very Useful Wordpress Hacks & Tricks » De Web Times - Sharing Useful Resources.

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  13. Toronto real estate listings

    This is a great way to make certain parts of your theme look and function differently from the rest of the theme!

    Regards

  14. 10 Exceptional WordPress Hacks « Web 2.0.

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  15. smi1ey

    So I tried changing the “['footer']” part of the code to the name of the widget area I need to remove, and nothing happened. I have a suspicion that I need to change more than that in the code. Do I also need to change the “disable_footer_widgets” lines? I’m not sure what to put if that’s the case. I have tried changing it to just “disable_footer_widgets”.

    The title of the widget area I’m trying to remove is “Secondary Sidebar #1″. Any thoughts? I appreciate it! :)

  16. smi1ey

    Oh, and to The Frosty. I would assume if you want this to work on a specific page, you would change the code:

    “if ( is_single() )”

    to

    “if ( is_page(#) )”

    with “#” being the numerical ID of the page. Although again, this hasn’t worked for me, because the code hasn’t worked on single posts or pages with any method I’ve tried so far. But maybe you’ll be luckier!

  17. Coafuri

    Oau..it’s quite simple. Until now i use a special plugin o do that.

  18. 10 Exceptional WordPress Hacks | 9Tricks.Com - Tips - Tricks - Tutorials

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  19. 10 Exceptional WordPress Hacks « Smashing Magazine

    [...] Disable widget areas (sidebars) without touching theme templates [...]

  20. 10 исключительных WordPress хаков | АртБухта

    [...] Disable widget areas (sidebars) without touching theme templates Добавить в социальные закладки [...]

  21. Albert

    @Coafuri,
    Which is the plugin that you use?

  22. 13 Useful Code Snippets for WordPress Development | Web Design Ledger

    [...] Source [...]

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (e.g., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.