Support » Fixing WordPress » Widgets not appearing on sidebar

  • When I add widgets to Sidebar 1 and save the changes, none of the widgets appear on the sidebar of the blog. Is there something I need to edit with my sidebar.php file or my functions.php file?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know if I can help you, but probably the first step is to give us the address of your blog.

    Well, I don’t want to post up my site, but here is the sidebar code and function code:

    SIDEBAR.php

    <!-- begin r_sidebar -->
    
    	<div id="r_sidebar">
    
      <ul id="r_sidebarwidgeted">
        <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
        <form action="http://www.google.com/cse" id="cse-search-box">
      <div>
        <input type="text" name="q" size="27" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
    </br>
        <li id="Recent Posts">
          <h2>Recent Posts</h2>
          <ul>
    <?php wp_get_archives('type=postbypost&limit=10'); ?>
          </ul>
        </li>
        <li id="Categories">
          <h2>Categories</h2>
          <ul>
            <?php wp_list_cats('sort_column=name'); ?>
          </ul>
        </li>
        <li id="Archives">
          <h2>Archives</h2>
          <ul>
            <?php wp_get_archives('type=monthly'); ?>
          </ul>
        </li>
    <ul>
          <?php get_links_list(); ?>
        </ul>
        <?php endif; ?>
    
    </div>    
    
    <!-- end r_sidebar -->

    FUNCTIONS.php

    <?php
    if ( function_exists('register_sidebars') )
        register_sidebars(2);
    ?>

    Is there a certain code I need to have in order for the widgets to show up?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widgets not appearing on sidebar’ is closed to new replies.