ThemeShaper Forums » Thematic

[closed]

Modify the left header

(9 posts)
  • Started 10 years ago by Artelus
  • Latest reply from roycreative
  • This topic is resolved
  1. Artelus
    Member

    Here's my site: http://www.blog.koroinu.com/

    The navigation is to the left, and I want to edit it.

    I looked in header.php, and all I see is this:
    <div id="header">
    <?php thematic_header() ?>
    </div><!-- #header-->

    How do I edit what goes in the links to the left of my site?

    Posted 10 years ago #
  2. You have to edit your style.css, not the template file!

    Posted 10 years ago #
  3. Artelus
    Member

    But I want to modify the HTML and PHP code in my header.

    Posted 10 years ago #
  4. Hey,

    could you please provide some details 'bout what you want to do?!

    Thematic is a very flexible Framework, where nearly everything can be changed using your child theme's style.css or your child theme's functions.php (via action or filter hooks).

    Cheers,

    Chris

    Posted 10 years ago #
  5. Artelus
    Member

    Sorry.
    I simply just want to change the HTML code inside my header section. In other words, everything inside <div id="branding> and <div id="access">.

    I also want to modify my navigation, which is inside <div id="access">.

    I want to take out the "RSS" link in my navigation menu and add some other links.

    Posted 10 years ago #
  6. That's pretty easy.

    Just use the following code in your child theme's functions.php:

    funtcion remove_header() {
      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', 'remove_header');

    Now everything is gone and you can add your code:

    function childtheme_header() {
      <-- Here's your code -->
    }
    add_action('thematic_header','childtheme_header');

    As I said .. no need to touch any Thematic file at all :-)

    Cheers,

    Chris

    Posted 10 years ago #
  7. Thanks Chris,

    This is super helpful. Noticed a small typo in your code "funtcion" should be "function"

    function remove_header() {
      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', 'remove_header');
    Posted 10 years ago #
  8. Thanks a lot for your help :)

    Chris

    Posted 10 years ago #
  9. What if I'm hiding #blog-title and using a background image on #branding, now I want to add an invisible link over the logo. I can't find the code inside <?php thematic_header() ?>

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.