Disable widget areas on specific pages

<?php
add_filter( 'sidebars_widgets', 'disable_sidebar_widgets' );
function disable_sidebar_widgets( $sidebars_widgets ) {
        if ( is_page('about-me') )
                $sidebars_widgets = array( false );
                return $sidebars_widgets;
}
?>

Note: Replaced about-me by your pages url

Leave a Reply

Your email address will not be published. Required fields are marked *