ThemeShaper Forums » Thematic

[closed]

How to move branding above header

(5 posts)
  • Started 7 years ago by Minimalist
  • Latest reply from Minimalist
  • This topic is resolved

Tags:

  1. Minimalist
    Member

    Hello!
    Hooks and filters are still my biggest problem with Thematic so if someone could please explain to me how I can move the entire branding div above the header to the thematic_aboveheader area, I would be very grateful. Thank you for your time.

    Posted 7 years ago #
  2. bogh
    Member

    Try this:

    // Remove the standard Thematic #branding DIV
    function remove_hooks() {
        remove_action('thematic_header','thematic_brandingopen',1);
    	remove_action('thematic_header','thematic_brandingclose',7);
    }
    add_action('init', 'remove_hooks');
    
    // Add New #branding Double DIV
    function childtheme_brandingopen() { ?>
        <div id="branding">
    <?php }
    add_action('thematic_aboveheader','childtheme_brandingopen',1);
    
    function childtheme_brandingclose() { ?>
        </div>
    <?php }
    add_action('thematic_aboveheader','childtheme_brandingclose',7);
    Posted 7 years ago #
  3. Minimalist
    Member

    Thank you very much, bogh! But the blog-title and blog-description divs are still inside the header. I would like to move them with the branding div since they were inside of it.

    Posted 7 years ago #
  4. really you just rinse and repeat for all the other functions. though if you aren't changing them it is unnecessary to define new functions such as childtheme_brandingopen.

    // Remove the standard Thematic #branding DIV
    function remove_hooks() {
        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);
    }
    add_action('init', 'remove_hooks');
    
    //add them to the aboveheader hook
    add_action('thematic_aboveheader','thematic_brandingopen',1);
    add_action('thematic_aboveheader','thematic_blogtitle',3);
    add_action('thematic_aboveheader','thematic_blogdescription',5);
    add_action('thematic_aboveheader','thematic_brandingclose',7);
    Posted 7 years ago #
  5. Minimalist
    Member

    Nice! Thank you so much, helgatheviking!!

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.