Merge pull request #1626 from ptrckvzn/fix-sidebar-templates

is_page_template() requires the name of the subfolder
This commit is contained in:
Ben Word
2016-04-02 22:54:51 -05:00

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