Forums

[resolved] Won't show image (2 posts)

  1. magicwings
    Member
    Posted 7 months ago #

    Hey all,

    I'm coding a theme and I'm stuck. I've got the logo in the template folder/images/logo.png and it won't print.

    Here's the code:

    <div id="logo">
    <img src="<?php get_bloginfo('template_directory') ?>/images/logo.png" />
    </div>

    I even wrote afterwards:

    <?php echo (get_bloginfo('template_directory')); echo('/images/logo.png'); ?>

    just to see if it was the right url - and it is.

    It won't show the image, just the "broken image" icon.

    What am I doing wrong?

  2. magicwings
    Member
    Posted 7 months ago #

    Never mind, sorted - I used bloginfo instead of get_bloginfo and it's working.

Reply

You must log in to post.

About this Topic