Hi everybody,
I've got one PHP function that works and one that doesn't.
I found this function of a previous forum thread:
http://themeshaper.com/forums/topic/how-to-remove-nav-above-help-me
/* remove above navigation */
function remove_nav_above(){
remove_action('thematic_navigation_above', 'thematic_nav_above', 2);
}
add_action('init','remove_nav_above');
I tested it and it worked. However, when I apply a condition to it the function doesn't respond:
/* remove above navigation for HOME ONLY*/
function remove_nav_above(){
if (is_home()) {
remove_action('thematic_navigation_above', 'thematic_nav_above', 2);
}
}
add_action('init','remove_nav_above');
In another forum somebody suggested putting...
wp_reset_query();
in between two similar queries for some kind of cancellation purpose I believe it was. ?
However, I put that before it as well, and nothing happened. Is there a basic syntax that I am forgetting to put in? I tried using "is_home" with another function the same way and it responded fine. The only difference was there was HTML tagging in the function.
Not sure why it's not responding. ?