Grow your CSS skills. Land your dream job.

[Solved] Html img src tag not showing up in wordpress

  • # March 11, 2010 at 6:58 pm

    I am using Chris’s blank theme to theme a wordpress site and My img path is not showing my images.

    Code:
    Sprintcars

    I’ve double checked that my file paths work in my regular index.html file and they do work but I cannot seem to get it to work in wordpress. I’ve also checked my image folder in this theme. Its weird because the file path works for background images from my css file.

    # March 11, 2010 at 10:43 pm
    Code:
    < ?php echo get_bloginfo( 'template_url' ); ?>/images/homeImg.jpg

    Put that as your path. Rel paths will work in the CSS files, but you have to use direct paths in the php files.

    # March 12, 2010 at 6:17 pm

    Thanks works wonderfully.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".