is_page_template() requires the name of the subfolder
This commit is contained in:
@@ -12,7 +12,7 @@ add_filter('sage/display_sidebar', function ($display) {
|
||||
return $display ? !in_array(true, [
|
||||
is_404(),
|
||||
is_front_page(),
|
||||
is_page_template('template-custom.php'),
|
||||
is_page_template('templates/template-custom.php'),
|
||||
]) : $display;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user