• Resolved ladyroboto

    (@ladyroboto)


    Hi,

    I’m working on building my own wordpress theme (learning as I go), and the person I’m building for would benefit from a highly widgetized home page for easy editing.

    I have been creating my own individual sidebars to display on the home page, and it’s was going well, until I added a sixth sidebar this morning. It shows up in my dashboard and I can add a widget to it, but it doesn’t display on my home page.

    I am confused because I have used the exact same formats/methods as with the first 5. I’ve checked for typos and errors, and I can’t find any. I have to wonder if I’ve reached some kind of limit with my sidebars. Anyone know if this is a possibility?

    My methods for adding the sidebars have been as follows (please note that the sidebar that doesn’t work is the final one, music_sidebar.php):

    home.php
    <?php if (is_page('Home')) : ?>
    <?php include(TEMPLATEPATH."/tourdates_sidebar.php"); ?>
    <?php include(TEMPLATEPATH."/twitter_sidebar.php"); ?>
    <?php include(TEMPLATEPATH."/promo_sidebar.php"); ?>
    <?php include(TEMPLATEPATH."/video_sidebar.php"); ?>
    <?php include(TEMPLATEPATH."/mailinglist_sidebar.php"); ?>
    <?php include(TEMPLATEPATH."/music_sidebar.php"); ?>
    <?php else : ?>
    <?php endif; ?>

    functions.php
    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Tour Dates'));

    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Twitter'));

    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Promotional Slider'));

    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Video'));

    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Mailing List'));

    if ( function_exists('register_sidebars') )
    register_sidebars(1, array('name'=>'Music Player'));

    music_sidebar.php
    <div id="music_sidebar">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(6) ) : else : ?>
    <?php endif; ?>
    </div>

Viewing 1 replies (of 1 total)
  • Thread Starter ladyroboto

    (@ladyroboto)

    Never mind, got it working 🙂 To answer my own question, I discovered that no, there isn’t a known limit.

Viewing 1 replies (of 1 total)
  • The topic ‘Is there a limit to # of sidebars to include?’ is closed to new replies.