I’m building a new content-managed website for Congregation Beth Shalom, a local synagogue, using WordPress and the Thematic Framework.
While researching slick, thematic ways to only do a filter on non-home pages, I came across this suggestion to add actions to the init action tag. It makes a lot more sense to use the wp action tag, though, so various wordpress template variables are made available, e.g.
function remove_ulcl() {
remove_filter('wp_page_menu','thematic_add_menuclass');
}
function add_ulcl() {
if(!is_home()||!is_front_page()) {
add_filter('wp_page_menu','thematic_add_menuclass');
}
}
add_action('wp', 'remove_ulcl');
add_action('wp', 'add_ulcl');
Isn’t that nice? I’m digging Thematic. It’s so wordpress-y.