[resolved] Number of sidebars with Widgets (3 posts)

  1. DJIanis5552
    Posted 8 years ago #


    I want to personalize my theme (i'm using K2). I need to have 3 sidebars for manage my widgets, but in the administration of widgets (wp-admin/widgets.php), i can only manage 2 sidebars.

    I try to search in the file widgets.php but i don't find anything.

    Can you help me to enable a 3rd sidebars ?

    And, to use this, i must type in my theme's html code :

    <div id="sidebar-3" class="secondary">
    <?php if(function_exists('dynamic_sidebar')) { dynamic_sidebar(3); } ?>

    Isn't it ?

    Thanks a lot for your help, i'm locked on this problem.
    (PS : I'm french so sorry for my bad language).

  2. Les Bessant
    keeper of the Tiggers
    Posted 8 years ago #

    This will be done by your theme. I've never really looked at K2, but if it works in the same way as my theme, look in the theme's functions.php file for a line like this:

    register_sidebars( 2, $p );

    Change the 2 to 3 and give it a try.

    Alternatively, you could try the K2 support forum, where you might find a more exact answer:

    K2 Forum

  3. DJIanis5552
    Posted 8 years ago #


    In K2's function.php file, there is no " register_sidebars " function, but there is a line " define('K2_SIDEBARS', 2); ".

    I've changed the 2 to 3, and it's works as i want.
    Thanks very much !

Topic Closed

This topic has been closed to new replies.

About this Topic