WordPress.org

Support

Support » Themes and Templates » [Resolved] Need help in defining my sidebar

[Resolved] Need help in defining my sidebar

  • I’m in the process of designing my own theme and I can’t get my sidebar widget aware.
    I get the:

    no sidebars defined

    The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.

    I did follow the instructions from the link that was provided. But I’ve been having no such luck. Any assistance would greatly be appreciated.

    Sidebar.php
    <div id=”sidebar”>
    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar() ) : ?>
    <div class=”title”>Recent Posts</div>

    <div class=”title”>Links</div>

    <?php endif; ?>
    </div>

    Functions.php

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<div class=”title”>’,
    ‘after_title’ => ‘</div>’,
    ));
    ?>

    Link to my site.
    LifeinTrees

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • could some please help…

    I’m a bit of a noob at php so any assistance would just be wonderful 🙂

    Thanks in advanced

    Well I figured it out… :/

    Turns out I spelled the functions.php file wrong and that’s why it wasn’t working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Need help in defining my sidebar’ is closed to new replies.