Was just doing a little more testing, and realized that maybe the problem is that I am not properly specifying where the files are located. The inline style just has an image url of postID.png, which would suggest it finds the file in whatever folder the page is currently being loaded from. Now I am trying to code the inline style to spell out the path, but I can't seem to find the right syntax. I've tried:
[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(c:/wamp/www/nhpn/<?php echo $post->ID; ?>.png);">
[CODE]
and this:
[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(/nhpn/<?php echo $post->ID; ?>.png);">
[CODE]
and this:
[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(localhost/nhpn/<?php echo $post->ID; ?>.png);">
As you can see, i'm workiing with a local WAMP server right now, but I'll be doing it again on a hosted site. The main page loads at localhost/nhpn.
Am I on the wrong track? I've spent upwards of 3 hours on this now, and it's reallly getting annoying!
|