I have these functions below that remove thematic_navigation_below and thematic_comments_template respectively.
//Remove nav_below when is_single.
if( is_single() ) {
function remove_navbelow() {
remove_action('thematic_navigation_below', 'thematic_nav_below', 2);
}
add_action('init', 'remove_navbelow');
}
////Remove comments_template when is_page.
if( is_page() ) {
function remove_comments_template() {
remove_action('thematic_comments_template','thematic_include_comments',5);
}
add_action('init', 'remove_comments_template');
}
How come they're not working when I wrap them with is_x() wp functions? If I place them outside they work perfectly. Any idea pls?