Image Link (2 posts)

  1. brightfire
    Posted 8 years ago #

    I have a theme (greenery) installed. And I would like to display an image on the sidebar. This is the code I am using:

    <img src="<?php bloginfo('url'); ?>/images/feed-icon.gif">

    The image folder is within the themes folder. And when I view the site, it shows up as not being able to locate the image, although the image is there. And I check the image path and that seems to be correct.

    I am truly stumped and have spent a few hours looking in codex and the forums to try and resolve this but could not find what is wrong. Can anyone help to enlightent me on what I am doing wrong?



  2. moshu
    Posted 8 years ago #

    1. <?php bloginfo('url'); ?
    2. The image folder is within the themes folder

    Don't you think there is some contradiction here???

    Try <?php bloginfo('stylesheet_directory'); ?>/images/etc.

    And for future reference (read before posting) http://codex.wordpress.org/Template_Tags/bloginfo#Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.