Support » Fixing WordPress » Adding a sidebar to sidebarless theme

  • Hi I’m currently helping a friend build a new wordpress site. She purchased the theme “Clean Theme 2.1” from ‘Folio Websites’. It looks great and all, but she asked me if I could add a sidebar to the design as being single columned, it’s sort of bland right now.

    I don’t know php all that well, but I’ve gotten used to manipulating it through a few years of using WP. So far, this is what I’ve done:

    in functions.php, add:

    <?php
    if ( function_exists('register_sidebars') )
    register_sidebars(1);
    ?>

    created sidebar.php with:
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(dynamic_sidebar() ) : else : ?>

    in index.php, add:
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>

    So far, the sidebar now shows up as existing when in the widgets section of the wp-dash. However, there’s no trace of it when loading the site itself. I feel like I am missing something very simple but very important. Any tips or suggestions would be greatly appreciated.

  • The topic ‘Adding a sidebar to sidebarless theme’ is closed to new replies.