GetSimple Support Forum
Images not displaying? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Images not displaying? (/showthread.php?tid=587)



Images not displaying? - RetepNamenots - 2010-03-27

Hi all,

I'm creating my own theme, however I am having problems simply displaying images.

This is in my template.php file.

If I create a div with a background image defined in the .css file, then it displays with no problems.

However if I try to use the <img src=""> tag, then nothing is displayed. I have checked my links are not broken, and the code appears in the source but appears as though it is not being parsed.

Am I being oblivious to something that I have overlooked?


Cheers


Images not displaying? - n00dles101 - 2010-03-27

use the following format when hardcoding images in your template:

Code:
<img src="<?php get_theme_url(); ?>/path_to_your_image.jpg" />

Mike


Images not displaying? - RetepNamenots - 2010-03-27

n00dles101 Wrote:use the following format when hardcoding images in your template:

Code:
<img src="<?php get_theme_url(); ?>/path_to_your_image.jpg" />

Mike

Wow, thanks!

Funny how it is always something small like that which I overlook...