Support » Fixing WordPress » I cannot get my sidebars to show up in the wordpress admin

  • I built a site for a friend in wordpress and created a custom theme but based it off a simple 2 column theme. http://abledbody.com/

    I have 3 sidebars in total on the site, sidebar-home.php [for the home page], sidebar-posts.php, for all individual post pages and sidebar.php for every other page [the category/tag/static pages/etc.]

    What I want to be able to do is have the three sidebars accessible in the wordpress admin so that beyond what is hardcoded there now that my friend can go in and add things like tag clouds or blogrolls, etc as she sees fit. Unfortunately the widgets pages says I only have sidebar1.

    I thought to register my three sidebars I use the following code in functions.php

    if ( function_exists('register_sidebar') )
        register_sidebar(3);

    I also call the sidebars where needed with get_sidebar('home'); or similar.

    I must be missing something pretty easy. Help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Sorry, I didn’t mean ‘show up’ as in show on the screen of my wordpress admin but show up so they are editable in wordpress admin, where I can add and delete widgets to them, so changes get reflected on the site itself.

    Since the owner of the site is non-technical she is not able to just use the editor and make code changes.

    I also want to know that. I can only get one sidebar up to put sidebar widgets to

    This is some of the code in functions

    /** widgets */
    if( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘name’ => ‘north_sidebar’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’
    ));
    register_sidebar(array(
    ‘name’ => ‘south_sidebar’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’
    ));
    register_sidebar(array(
    ‘name’ => ‘west_sidebar’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’
    ));
    register_sidebar(array(
    ‘name’ => ‘east_sidebar’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3>’
    ));
    }

    how cam I make this have many sidebars??
    How do you fix many sidebars to your site? Why is this so hard? Or isn`t it?

    Is there some here with a clue on how to add a second sidebar?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I cannot get my sidebars to show up in the wordpress admin’ is closed to new replies.