tags:

views:

26

answers:

3

Hello again. Im adding an image to my wordpress theme through dreamweaver cs4 and themedreamer. The image will go in the sidebar.php. When I inserted an image it doesnt shows in firefox and explorer. With safari, the image only shows an empty box with a question sign in the middle.

Is there a special way to add image in a wordpress template?

A: 

No, but you have to get the value of the src attribute correct.

David Dorward
@David, what Sarfraz told me to do works.
iMayne
+1  A: 

Prepend below line to images's src:

<?php echo get_bloginfo('template_url'); ?>

Making your src something like this:

<img src="<?php echo get_bloginfo('template_url'); ?>/images/yourimage.gif" alt="" />
Sarfraz
(im on my knees thanking up!!!) Dude, you ROCK!!!!!!! THANKS!!!!
iMayne
@iMayne: You are welcome :)
Sarfraz
A: 

Sarfraz method works for me.

iMayne
@iMayne: That is good news then :)
Sarfraz