• I am hoping someone can help me out.

    I am trying to create my own template and all is going pretty well so far. But I go to the widget page and it says:

    No Sidebars Defined
    You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change.

    I have no clue how to fix this.

    I have a functions.php page with the code:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar();
    ?>

    on my sidebar page I have:

    <div class="sidebar">
    <ul>
    
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    
    	<li id="calendar">
    		<center><?php get_calendar(); ?></center>
    	</li>
    
    	<?php wp_list_pages('depth=3&title_li=<h2>Pages</h2>'); ?>
    
    	<li><h2><img src="http://www.shadowsmoon.com/moon/wp-content/themes/luna/images/sidebutton.jpg" border="0">&nbsp;&nbsp;<?php _e('Categories'); ?></h2>
    		<ul>
    			<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    		</ul>
    	</li>
    
    	<li><h2><img src="http://www.shadowsmoon.com/moon/wp-content/themes/luna/images/sidebutton.jpg" border="0">&nbsp;&nbsp;<?php _e('Archives'); ?></h2>
    		<ul>
    			<?php wp_get_archives('type=monthly'); ?>
    		</ul>
    	</li>
    
    	<?php get_links_list(); ?>
    
    	<li><h2><img src="http://www.shadowsmoon.com/moon/wp-content/themes/luna/images/sidebutton.jpg" border="0">&nbsp;&nbsp;Site Info</h2>
    		<ul>
    			<?php wp_register(); ?>
    			<li><?php wp_loginout(); ?></li>
    			<?php wp_meta(); ?>
    		</ul>
    	</li>
    
    <?php endif; ?>
    
    </ul>
    
    </div>

    can anyone help a girl out here? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • This may not affect anything but try adding a 1 in sidebar.php and functions.php

    SIDEBAR.php

    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

    FUNCTIONS.php

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(1);
    ?>

    Thread Starter blasphemie

    (@blasphemie)

    nope that didn’t work at all 🙁 But thanks for trying.

    Anyone else have any ideas??

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘(widgets) No Sidebars Defined??’ is closed to new replies.