ThemeShaper Forums » Thematic

[closed]

Above Access

(3 posts)
  • Started 3 years ago by johnosmond
  • Latest reply from johnosmond
  • This topic is resolved
  1. I want to add a new div/image to the header, but I want it to come before the access div. (more precisely, between the blog-title h1 and the blog-desc h2)

    I tried this:

    <?php
    function my_add_header_image() { ?>
    <div class="div-header-image"><img src="<?php bloginfo('stylesheet_directory') ?>/images/banner.jpg" title="Evaluation by Design" id="imgHeader" /></div>
    <?php
    }
    //add_action('thematic_header', 'my_add_header_image');
    ?>

    but that puts it after the access. Probably easy for some of you seasoned 'thematicors' but I'm stuck on it.

    Thanks.

    Posted 3 years ago #
  2. Well that didn't take long. I figured out that changing the priority is the key. I changed it to 5 and it worked perfectly. Too easy.

    So for anyone interested, the add action line (which I have commented out above, sorry) looks like this:
    add_action('thematic_header', 'ebd_add_header_image', 5);

    :0)

    Posted 3 years ago #
  3. oops! I meant: add_action('thematic_header', 'my_add_header_image', 5);

    I need to start reading these better!

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.