• Resolved mrpaplu

    (@mrpaplu)


    Hi there,

    I’m trying to build a template for wordpress. I use XAMPP and I set up a local wordpress installation. I only made a sort of template in html & css and I am now trying to use it within a template in wordpress.

    However, since I put my files in the theme for wordpress, my pictures in the <img> tags won’t display. The problem occurs with png & gif so far. The weird thing’s that when I use the same pictures as a background in the CSS file, they do display correctly. When I go to the picture (https://localhost/theme/img/rss.png) the browser tells me he can’t find it. If I don’t use WordPress and just show the page, it does work.

    I’m very confused about it, and I’m getting crazy because it won’t work, so some help would be very much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try using the WP Add Media to upload and insert the images.

    Thread Starter mrpaplu

    (@mrpaplu)

    I found the problem. The problem was in my linking to the pictures. In the CSS file url(img/feed.png); was enough, but in the <img> tag I should use href=”/wp-content/themes/theme/img/feed.png”.

    Anyways, thanks for the help, and I’m off, working on the rest of the theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PNG&GIF don't work using’ is closed to new replies.