ThemeShaper Forums » Thematic

Adding code between the nav and the branding

(5 posts)
  • Started 12 years ago by jhiner1978
  • Latest reply from rics
  • This topic is not resolved
  1. I would like to add a few divs and content on the homepage between the nav and the branding or really just anywhere in the header, I have looked for the function that adds the nav to add it there but im having issues finding where to do it.

    can I just separate the header from the nav so that those things are separate then I can put what I want in between them.

    Also Im not using a Child theme I'm just changing the main thematic theme

    Posted 12 years ago #
  2. The following functions define the header:


    All are located in thematic/library/extensions/hooks-filters.php

    If you change something in the Thematic files do it on your own risk. We strongly recommend using a child theme otherwise you'll loose all your changes with the next upgrade of Thematic.



    Posted 12 years ago #
  3. rics


    I can add HTML inside header already. I'm using thematic_header() and it's fine. But, how can I access (from functions.php), for example, thematic_brandingopen(), so I can put HTML inside #branding, just before #blog-title?

    I couldn't figure it out by myself.

    Posted 12 years ago #
  4. You need to remove the original thematic_brandingopen from thematic_header:

    function remove_hooks() {
    add_action('init', 'remove_hooks');

    Now you can create your own function:

    function childtheme_brandingopen() { ?>
        <div id="branding">
    <?php }

    Add whatever is needed to your childtheme_brandingopen.

    Btw.: Everything header related can be found in thematic/library/extensions/header-extensions.php.


    Posted 12 years ago #
  5. rics

    I'm loving this "theme" thing Chris! I'm learning now how to handle all that stuff, and everytime I learn a new way to do things that is just perfect...

    Thanks a lot for teaching me! :D

    Posted 12 years ago #

RSS feed for this topic


You must log in to post.