I am trying to create a site with the follow changes.
1) on the home page the header and nav div's is removed totally
2) on the internal pages the nav is moved from below "branding" to within the "branding"
I have managed to achieve number 2 with the following code
function replace_thematic_menu_position() {
// remove menu
remove_action('thematic_header','thematic_access',9);
// replace menu with new hook
add_action('thematic_header','thematic_access',6);
}
add_action('init','replace_thematic_menu_position');
I am at a loss as to how to ensure this is activated with number one as well. I have tried the following but without success
//setup function
function childtheme_header_move() {
//start of if statement
if (is_home() & !is_paged()) {
remove_action('thematic_header','thematic_brandingopen',1);
remove_action('thematic_header','thematic_blogtitle',3);
remove_action('thematic_header','thematic_blogdescription',5);
remove_action('thematic_header','thematic_brandingclose',7);
remove_action('thematic_header','thematic_access',9);
} else {
// remove menu
remove_action('thematic_header','thematic_access',9);
remove_action('thematic_footer','thematic_siteinfo',30);
// replace menu with new hook
add_action('thematic_header','thematic_access',6);
}
}
add_action('thematic_belowheader','childtheme_header_move');
Any ideas would be appreciated
Phil