Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    I used jd-nebula as the basis for my own theme and ran into the same problem. Searching around the forums, I found a potential solution. Don’t know if my hack is good code, but it works to my satisfaction:

    <div id="left-sidebar">
    <ul>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    <li>
    <div id="categories">
    <h3><?php _e('Categories:'); ?></h3>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&feed=rss'); ?>
    </ul>
    </div>
    </li>
    <li>
    <div id="archives">
    <h3><?php _e('Archives:'); ?></h3>
    <ul>
    <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
    </ul>
    </div>
    </li>
    </ul>
    <?php endif; ?>
    </div>
    
    <div id="right-sidebar">
    <ul>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    <li>
    <h3>Calendar</h3>
    <?php get_calendar(); ?>
    </li>
    <li>
    <div id="blogroll">
    <h3>Blogroll</h3>
    <ul>
    <?php get_links(-1, '<li>', '</li>', ' - '); ?>
    </ul>
    </div>
    </li>
    <li>
    <div id="meta">
    <h3><?php _e('Meta:'); ?></h3>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="https://www.ads-software.com/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
    <?php wp_meta(); ?>
    </ul>
    </div>
    </li>
    </ul>
    <?php endif; ?>
    </div>

    Basically, I replaced

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar_1') ) : else : ?>

    with

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(?) ) : else : ?>
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    (change ? in dynamic_sidebar(?) to 1 for the left sidebar and 2 for the right sidebar)

    Then I wrapped each sidebar in a <ul> tag, and wrapped each sidebar module in <li> tags.

Viewing 1 replies (of 1 total)