ThemeShaper Forums » Thematic

[closed]

bloginfo('template_directory') returns the thematic-directory

(3 posts)
  • Started 3 years ago by ahoereth
  • Latest reply from ahoereth
  • This topic is resolved
  1. ahoereth
    Member

    function test_blogtitle() { ?>
    <div id="blog-title">/" title="<?php bloginfo('name') ?>" rel="home"><img src="<?php bloginfo('template_directory'); ?>/img/test_1.jpg" alt="<?php bloginfo('name') ?>" title="<?php bloginfo('name') ?>" /></div>
    <?php }
    function remove_title_desc() {
    remove_action('thematic_header','thematic_blogtitle',3);
    remove_action('thematic_header','thematic_blogdescription',5);
    }
    add_action('init', 'remove_title_desc');
    add_action('thematic_header','test_blogtitle',3);

    It works just fine in general. It just puts the wrong template_directory in the link. How to make it link to my child template?

    Thanks already!

    Posted 3 years ago #
  2. Hi,

    Try bloginfo('stylesheet_directory') to lead you to the active child theme.

    -Gene

    Posted 3 years ago #
  3. ahoereth
    Member

    Works fine. Thanks :)

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.