How to increase maximum number of sidebars support?

How can i use more than 20 sidebars in wordpress. I’m working on a big information portal, and I need big amaunt of sidebars (about 40, I guess).
So I have 20 sidebars now and when I add one more it overrides one of the previous entered.
I searched the web about similar problems, but I found nothing …
Can somebody help me get out of this situation?

Link to the site

Related posts

Leave a Reply

1 comment

  1. Just tried it on a test install with twenty-something sidebars, all works fine. Note that id parameter should be unique between all of them. name doesn’t have to be, but it’s nice to keep it unique as well so as to avoid confusion in the admin UI.

    register_sidebar( array(
        'name' => 'twenty-three',
        'id' => 'sidebar-23',
        'description' => 'dummy description',
        'before_widget' => '<aside id="%1$s" class="widget %2$s">',
        'after_widget' => '</aside>',
        'before_title' => '<h3 class="widget-title">',
        'after_title' => '</h3>'
    ) );