Changing layout sidebars with a hook
Hello. I’m trying to change the layout in a particular page using this code in functions.php function dom_barra_en_especialidades( $layout ){ if ( is_page('the-slug') ){ return 'left-sidebar'; } else { return $layout; } } add_filter( 'generate_sidebar_layout','dom_barra_en_especialidades' ); The default setting is to Content with no sidebars, but I want the left sidebar in that page. I’m … Read more