Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Images not displaying?
#1
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
Reply
#2
use the following format when hardcoding images in your template:

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

Mike
My Github Repos: Github
Website: DigiMute
Reply
#3
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...
Reply




Users browsing this thread: 1 Guest(s)