WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need help in defining my sidebar (3 posts)

  1. scoslow
    Member
    Posted 5 years ago #

    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

  2. scoslow
    Member
    Posted 5 years ago #

    could some please help...

    I'm a bit of a noob at php so any assistance would just be wonderful :)

    Thanks in advanced

  3. scoslow
    Member
    Posted 5 years ago #

    Well I figured it out... :/

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

Topic Closed

This topic has been closed to new replies.

About this Topic