Comment désactiver la barre latérale Widgets sur des pages spécifiques WordPress

201

<?php
add_filter( 'sidebars_widgets', 'disable_sidebar_widgets' );
function disable_sidebar_widgets( $sidebars_widgets ) {
    if (is_single(array(1,2,4,8)))
        $sidebars_widgets = array( false );
            return $sidebars_widgets;
}
?>

Comments

Submit
0 Comments