ThemeShaper Forums » Thematic


bloginfo('template_directory') returns the thematic-directory

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

    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() {
    add_action('init', 'remove_title_desc');

    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 4 years ago #
  2. Hi,

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


    Posted 4 years ago #
  3. ahoereth

    Works fine. Thanks :)

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.