GetSimple Support Forum

Full Version: Images not displaying?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
use the following format when hardcoding images in your template:

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

Mike
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...