Support » Themes and Templates » No widgets showing in my sidebar

  • Resolved MaddTechWF

    (@maddtechwf)


    I’m not able to see any widgets that i put in my sidebar. Here is the code I’m using.

    Sidebar.php

    <div id="sidebar">
    	<?php // if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
        <?php // endif; ?>
    </div>

    Functions.php

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
             'before_widget' => '',
             'after_widget' => '',
             'before_title' => '<div class="subpages"><h3>',
             'after_title' => '</h3</div>',
         ));
    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • MaddTechWF

    (@maddtechwf)

    Okay, I just noticed the comment //’s. I removed those but still nothing.

    On my theme’s I have ampersands instead of pipes

    && rather than ||

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

    MaddTechWF

    (@maddtechwf)

    That didn’t seem to fix it but thanks for the input.

    I’m just trying to look through the differences from my code to yours…

    functions.php, above the before_widget line I have
    'name'=>'Sidebar',

    MaddTechWF

    (@maddtechwf)

    Sweet… That fixed it. Thank you so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No widgets showing in my sidebar’ is closed to new replies.