• Hi Guys!

    This is probably a really stupid problem. I’m creating a theme for a friend of mine, and I’ve got a basic HTML template down and functional in browsers. I’m slowly incorporating WordPress functionality to it, and in testing that out, I decided to activate the theme.

    Unfortunately, most of the images don’t show up. The only ones that do are the ones that are displayed through CSS as backgrounds.

    How on earth do I get an img tag to show up properly? I tried incorporating the template path in the src attribute and it doesn’t seem to make any difference.

    The images are stored in a standard image folder within the template directory.

    I’ve tried googling this and I can’t seem to find anything about this.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are your images stored outside the WP installation directory?…

    Plonk them inside the images folder of your theme…

    /wp-content/themes/YOURTHEME/

    Is where your template files are, so your images would be…

    /wp-content/themes/YOURTHEME/images/

    You should just be linking to the images like so…

    Basic example::
    <img src="images/yourimage.jpg" alt="alternate text" title="image title" />

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems creating a theme’ is closed to new replies.