• I’m not totally sure which version of WordPress I am on however I have two website lyjastadlenbrown.com and musicyouneed.net. I installed the Sight theme and redesigned aspects of it. The lyjastadlenbrown website shows the new theme and the dynamic sidebar works perfectly. I copied the code over to musicyouneed, however when I preview or activate the theme my widgets don’t appear in the sidebar on the new site. The code is the same in sidebar.php, functions.php, index.php, and most others. Not sure which file this issue could be coming from sidebar.php reads:

    <div class=”sidebar”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar’) ) :
    $widget_args = array(
    ‘after_widget’ => ‘</div></div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3><div class=”widget-body clear”>’
    );
    ?>

    <?php the_widget( ‘GetConnected’, ‘title=Get Connected’, $widget_args); ?>

    <?php the_widget( ‘Recentposts_thumbnail’, ‘title=Recent posts’, $widget_args); ?>

    <?php endif; ?>
    </div>

    If I remove the formatting of the sidebar

    ($widget_args = array(
    ‘after_widget’ => ‘</div></div>’,
    ‘before_title’ => ‘<h3>’,
    ‘after_title’ => ‘</h3><div class=”widget-body clear”>’
    );)
    Then the dynamic sidebar will appear but unformatted and it looks terrible! Please help, any suggestions are greatly appreciated!

  • The topic ‘Dynamic Sidebar not working (Sight Theme)’ is closed to new replies.