Last active
December 20, 2015 03:59
-
-
Save scottnix/6067940 to your computer and use it in GitHub Desktop.
Thematic Theme remove sidebars on Single Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remove sidebars on single pages in thematic | |
function childtheme_thematic_sidebar($show) { | |
if ( is_single() ) { | |
$show = false; | |
} | |
return $show; | |
} | |
add_filter('thematic_sidebar', 'childtheme_thematic_sidebar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obviously the CSS will need to be adjusted for this, in certain instances it is better to use a different template, but this can be useful.