WordPress.org

Ready to get started?Download WordPress

Forums

Disable Dynamic sidebar - twentyten theme (1 post)

  1. Kevin S
    Member
    Posted 3 years ago #

    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?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic