Grow your CSS skills. Land your dream job.

[Solved] Images not showing in WordPress

  • # January 3, 2010 at 8:36 pm

    http://www.emergeprosthetics.com/new_emerge/
    I’m a novice when it comes to HTML, CSS, PHP and WordPress. I used Chris’s #73: Building a Website (3 of 3): WordPress Theme screencast as I am essentially doing the same thing. I created a template design with HTML and CSS in Dreamweaver that I am trying to transfer over to WordPress in order to create a more dynamic site with blog capability.
    The problem I’m having is getting my images to display from my html. The images embedded in my CSS style file are displaying fine. I started with Starkers theme and basically replaced the style file with my own eliminating the folder structure he had created. My folder structure is as follows;[attachment=0]files.png[/attachment]

    The following is the code I took from the html I inserted after the <Body> tag in the Header.PHP file using the ?php bloginfo(‘template_url’); code chris used to define the image path which for some reason did not work for me

    Code:

    Could someone please provide some guidance? I’ve been researching this in the Codex and can’t seem to find a solution. I’m sure it’s probably very easy. thanks!

    # January 3, 2010 at 11:44 pm

    Change:

    Code:

    To:

    Code:

    # January 4, 2010 at 1:22 am

    One syntax error will mess you up good, it took me 5 minutes to see the difference in the code! Thank you Thank you!!

    # January 4, 2010 at 3:13 am

    No problem! One of the best ways to find errors like that is to view the source code on the page itself (the outputted html, not the code with the PHP in it). You’ll find errors like that much quicker!

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

You must be logged in to reply to this topic.

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