While doing keyword research i came across a site that used css to place the header where it goes but in the html the content ie.. the h1 are the first content read on the page. I want to unhook the entire header and rehook it just after the main.. I know this is simple im just not finding it.
ThemeShaper Forums » Thematic
Move header below content in html output
(8 posts)-
Posted 2 years ago #
-
function unhook_thematic_functions() {
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);
}
add_action('init','unhook_thematic_functions');You'll just have to hook the new code to something other than thematic_header .
Posted 2 years ago # -
just after main i believe is the thematic_abovecontainer() hook
Posted 2 years ago # -
Only problem is that doesnt move the <div id="header"> I tried that before i posted. It moved everything inside it.
After digging through thematic structure some it looks like i would have to hack the original to make it happen which is a big no no for me. I think im gonna have to petition for a hook for each header, main, and footer codes.
Posted 2 years ago # -
Any body have any ideas on this?
Posted 2 years ago # -
i dont think it can be done with the existing hooks/filters structure. i think you'd have to copy header.php into your child theme and get rid of/move the #header div in there.
Posted 2 years ago # -
Are you oppossed to using JavaScript to achieve this?
If not you can use jquery to append and prepend Dom elements.
Posted 2 years ago # -
Javascript would not serve the purpose i believe. The benefits of this are that it places the content up front for search engines to view first. The user would have no noticeable difference ie the header could still be positioned above the content using css. Google bot doesnt load java and therefore wouldnt move read the rearranged code anyways.
As i posted before thematic would need an overhaul with hooks/filters for the entire #header function, as well as #main, #footer.. Could really help to set this theme even further apart from many others.
Posted 2 years ago #
Topic Closed
This topic has been closed to new replies.