WordPress.org

Forums

Attitude
Customize Header (1 post)

  1. htc123
    Member
    Posted 1 year ago #

    Hi,

    Attitude theme is great and I love it but I would like to replace the existing header with my custom header with links, images, background color...etc. The current custom header option only supports image. Also I tried the 'Header/Footer' plugin but it is not really replacing the existing header but adding on top part of existing page. Not so nice.
    I also read something about unhooking existing header and adding your own but I do not know how to do it in Attitude. I wonder if anyone can give some pointer on removing attitude header hook and adding a new header function.

    I think it probably needs to add some php code in functions.php in a child theme
    something like...

    <?php
    // Now we add our new function to our Action Hook
    add_action('init','childtheme_welcome_blurb', 15);
    
    // First we make our function
    function childtheme_welcome_blurb() { ?>
     <p>Welcome to my new header</p>
    <?php
    remove_action( 'init','attitude_header',15);
    
    } // end of our new function childtheme_welcome_blurb

    Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic