WordPress.org

Ready to get started?Download WordPress

Forums

I cannot get my sidebars to show up in the wordpress admin (7 posts)

  1. staiano
    Member
    Posted 5 years ago #

    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?

  2. staiano
    Member
    Posted 5 years ago #

    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.

  3. kjagen
    Member
    Posted 5 years ago #

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

  4. kjagen
    Member
    Posted 5 years ago #

    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?

  5. kjagen
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic