ThemeShaper Forums » Thematic

[closed]

Move header below content in html output

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

    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 3 years ago #
  2. Goran
    Member


    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 3 years ago #
  3. just after main i believe is the thematic_abovecontainer() hook

    Posted 3 years ago #
  4. Danieliser
    Member

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

    Any body have any ideas on this?

    Posted 3 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 3 years ago #
  7. AnotherAndrew
    Member

    Are you oppossed to using JavaScript to achieve this?

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

    Posted 3 years ago #
  8. Danieliser
    Member

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

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.