is_page_template() requires the name of the subfolder

This commit is contained in:
Patrick Vézina
2016-03-15 08:16:59 -04:00
parent 82cd4c32f6
commit 55b9feab25

View File

@@ -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;
});