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.
LifeinTreesThanks in advance
- The topic ‘Need help in defining my sidebar’ is closed to new replies.