• I have had nothing but problems in the last few days!!

    I have started from scratch and am adding back piece by piece to see where I’ve screwed up.

    My sidebar for some reason will not show the active widgets. When I go to the widget page I can drag them into the sidebar. But nothing shows up on the webpage.

    Functions.php

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

    Sidebar.php

    <div id="sidebar-lt">
    <ul>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else : ?>
    
    <?php endif; ?>
    </ul>
    </div>

    I’m not sure where I’m wrong…this all worked fine a few days ago…not sure what happened! Any help is appreciated. I’m getting frustrated, I just want to complete my site!!

Viewing 1 replies (of 1 total)
  • <div id="sidebar-lt">
    <ul>
    <<?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    </ul>
    </div>

    Try that, but i would change code in functions.php for registering sidebars to

    //Some simple code for our widget-enabled sidebar
    if ( function_exists('register_sidebar') )
        register_sidebar(array('name'=>'sidebar1',
            'before_widget' => '<div class="sidebar1">',
            'after_widget' => '</div>',
            'before_title' => '<div class="title">',
            'after_title' => '</div>',
        ));

    and this in sidebar.php

    <div class="sidebar-lt">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar1') ) : ?>
    <?php endif; ?>
    </div>

Viewing 1 replies (of 1 total)
  • The topic ‘sidebars’ is closed to new replies.