Where to place images for default theme? (2 posts)

  1. kevinm2
    Posted 11 years ago #

    I have placed the follwoing link in my sidebar, but I can't the image to show. Any ideas how this could be fixed.

    <a href="http://www.OtherDomain.com/enrollment?promoCode=G5W01"><IMG SRC="/images/SA_discounts_120x60.gif" Alt="OtherDomain.com"></a>

    ps. I am using the default theme!

  2. Kafkaesqui

    Posted 11 years ago #

    A path of "/images/" would be the "images" subdirectory in the root of the site (i.e. http://www.OtherDomain.com/images/). If you want to place your images in the "images" directory of the default theme, you'd need to do the following in your templates:

    src="<?php bloginfo('template_url'); ?>/images/SA_discounts_120x60.gif"

    bloginfo('template_url') would output the URL of the current (active) theme's directory.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.