• I’m having a problem with a sidebar in which it is loading only a list of my site’s contents (assuming this is the default action of sidebar.php). It is only the one sidebar and the code to call it is identical to the working sidebars, but it just… won’t work.

    Here’s the call for it in the template (footer.php):

    <?php get_sidebar('top2')?>

    Here is the code for it from functions.php:

    register_sidebar( array(
    		'name'          => 'top2',
    		'id'            => 'sidebar-left',
    		'description' => __( 'The damned sidebar that wont work', 'Dragonmun2016' ),
    		'before_widget' => '<div>',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h2>',
    		'after_title'   => '</h2>',
    	) );

    And here is the code in sidebar-left.php:

    <?php dynamic_sidebar( 'sidebar-left' ); ?>

    Example: http://dragonmun.com/ (scroll all the way to the bottom).

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘One Sidebar Not Working’ is closed to new replies.