• Resolved jl2035

    (@jl2035)


    I want extra widget area on my home.php template. I’m using Responsive theme by Emil Uzelac. I have no idea why my extra ‘sidebar’ is not working.

    dynamic_sidebar('front-side-sidebar');

    The function returns true but it displays nothing. I can see my extra widget area in “Widgets” and I did add one widget there. In my functions.php I have this:

    function front_side_sidebar_init()
    {
    	register_sidebar(
    	array(
    		'id' => 'front-side-sidebar',
    		'name'=>'Front Side sidebar',
    	    'description' => __('Front Side sidebar', 'responsive'),
    		'before_widget' => '<li>',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>'
    		)
    	);
    }
    add_action( 'widgets_init', 'front_side_sidebar_init' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘dynamic_sidebar returns true but no widgets’ is closed to new replies.