[resolved] Troubleshooting with <img> tag (3 posts)

  1. Anonymous
    Posted 8 years ago #

    I have a few <img> tags used in my theme, but they're not show at anytime. One of them is "wp-content/themes/mix/images/rss_a.png". What should I write in the "src" attribute in order to be shown properly? I've tried to use the full path ("wp-content/themes/mix/images/rss_a.png"), but that only works when the images are shown on the main page. I guess I could use the entirely full path ("mydomainname/wp-content..."), but I'd prefer a domain-independent method.

    Thank you in advance,
    Weasel, the Geek

  2. SteveSmith1983
    Posted 8 years ago #

    <img src="<?php bloginfo('url'); ?>/wp-content/themes/mix/images/rss_a.png" />

  3. Anonymous
    Posted 8 years ago #

    Oh, why didn't I think about that? :blushing: Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic