Created
August 7, 2012 04:47
-
-
Save kristarella/3281708 to your computer and use it in GitHub Desktop.
Angel Snippets
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
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