• Resolved MILE089

    (@mile089)


    Okay, I’m running two different blogs, using two different themes, both allegedly widget-compatible…one is Barthelme, the other is Cutline…

    The sidebar code seems alright to me, so widgets should actually work — but what do I know…?! Here’s what the sidebar code of one of them looks like:

    <div id="primary" class="sidebar">
    		<ul>
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : // Begin Widgets; displays widgets or default contents below ?>
    
    <?php if ( !is_front_page() || is_paged() ) { // Displays a home link everywhere except the home page ?>
    			<li id="home-link">
    				<h3><a href="<?php bloginfo('home') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>"><?php _e('Home', 'barthelme'); ?></a></h3>
    			</li>
    <?php } ?>
    
    <?php wp_list_pages('title_li=<h3>'.__('Pages').'</h3>&sort_column=menu_order' ) ?>
    
    			<li id="categories">
    				<h3><?php _e('Categories', 'barthelme'); ?></h3>
    				<ul>
    <?php wp_list_cats('sort_column=name&hierarchical=1') ?>
    
    				</ul>
    			</li>

    Anyway, whenever I add some widget — any widget — that actual widget then shows up in the sidebar — but all the regular content is gone…!?! Shouldn’t the widget be added on top or so…?! What am I missing here…?!

    From what I understand that’s the purpose of a dynamic sidebar — that you can add widgets to the ones you already have running in the sidebar…?!

    Can someone please clear that up for me…? Thanks!!

    :: M ::

  • The topic ‘Widgets mess up my sidebar…!?’ is closed to new replies.