To create a child theme with the main menu in the left sidebar, I removed the access div from the header --
// Remove default Thematic actions
function remove_thematic_actions() {
remove_action('thematic_header','thematic_access',9);
}
add_action('init','remove_thematic_actions');
But now, I need a full width template with the access div above the header.
I want the access div above the header for this template only, not all the templates.
This code adds the access div to all the templates.
I don't know why the conditional statement is not working:
// Moving the thematic menu above the header
// only for full width pages
// replace menu with new hook
function fullwidth_access_menu() {
$hook = 'thematic_header';
if( is_page_template('template-page-fullwidth.php')) $hook = 'thematic_aboveheader';
add_action($hook,'thematic_access');
}
add_action('get_header','fullwidth_access_menu');
Can anyone see the problem?