ThemeShaper Forums » Thematic


Move header below content in html output

(8 posts)
  • Started 10 years ago by Danieliser
  • Latest reply from Danieliser
  • This topic is not resolved
  1. Danieliser

    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.

    Posted 10 years ago #
  2. Goran

    function unhook_thematic_functions() {

    You'll just have to hook the new code to something other than thematic_header .

    Posted 10 years ago #
  3. just after main i believe is the thematic_abovecontainer() hook

    Posted 10 years ago #
  4. Danieliser

    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 10 years ago #
  5. Danieliser

    Any body have any ideas on this?

    Posted 10 years ago #
  6. 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 10 years ago #
  7. AnotherAndrew

    Are you oppossed to using JavaScript to achieve this?

    If not you can use jquery to append and prepend Dom elements.

    Posted 10 years ago #
  8. Danieliser

    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 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.