Support » Themes and Templates » Sidebar Issues (Widgets)

  • Resolved submo6


    I am trying to edit a theme and the widgets are not working. In the admin panel it says “No Sidebars Defined” Though my sidebars look basically identical to the ones in the tutorial at –

    Can anyone help me out?

    This is what the sidebar code is, and the theme I am trying to use is –

    I am also using wordpress 2.5

    <div id="sidebar">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    	<li id="search">
    		<?php include(TEMPLATEPATH . '/searchform.php'); ?>
    	<li id="calendar"><h2><?php _e('Calendar'); ?></h2>
    		<?php get_calendar(); ?>
    	<?php wp_list_pages('depth=3&title_li=<h2>Pages</h2>'); ?>
    	<li><h2><?php _e('Categories'); ?></h2>
    			<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    	<li><h2><?php _e('Archives'); ?></h2>
    			<?php wp_get_archives('type=monthly'); ?>
    	<?php get_links_list(); ?>
    	<li><h2><?php _e('Meta'); ?></h2>
    			<?php wp_register(); ?>
    			<li><?php wp_loginout(); ?></li>
    			<?php wp_meta(); ?>
    <?php endif; ?> 
Viewing 2 replies - 1 through 2 (of 2 total)
  • Put a functions.php file to your theme folder

    With the content


    if ( function_exists(‘register_sidebar’) )

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


    This may help You. BTW quotes on Daydreamz are awesome.

    Thank you so much for your help! It worked!!

    For the quotes on my blog I found them around the internet. Just good simple quotes to live by in life, inspirational, motivational type. I am using the “Random Quotes” Plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar Issues (Widgets)’ is closed to new replies.