Support » Themes and Templates » Disable Dynamic sidebar – twentyten theme

  • Hi,

    I am using latest version of twentyten theme. I disabled Sidebar widget in particular page by adding below code in functions.php

    add_filter( 'sidebars_widgets', 'disable_all_widgets' );
    function disable_all_widgets( $sidebars_widgets ) {
    	if ( is_page('25') )
    		$sidebars_widgets = array( false );
    	return $sidebars_widgets;

    The sidebar widget is gone which I have added from Widget option which in under Appearance option, but still Dynamic sidebar is there, so how do I doable Dynamic sidebar as well?


  • The topic ‘Disable Dynamic sidebar – twentyten theme’ is closed to new replies.