Skip to content

Instantly share code, notes, and snippets.

@kristarella
Created August 7, 2012 04:47
Show Gist options
  • Save kristarella/3281708 to your computer and use it in GitHub Desktop.
Save kristarella/3281708 to your computer and use it in GitHub Desktop.
Angel Snippets
function custom_body_classes($classes) {
if (is_category('Videos'))
$classes[] = "videos";
return $classes;
}
add_filter('thesis_body_classes','custom_body_classes');
function no_sidebars() {
if (is_category('Videos'))
return false;
else
return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');
function random_posts() {
global $query_string;
if (is_page('Random Posts'))
query_posts($query_string.'&orderby=rand');
}
add_action('thesis_hook_before_content','random_posts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment