Where to store the images of a custom wordpress theme?

by Vanina Yordanova   Last Updated November 17, 2017 10:08 AM

I am creating a custom theme. If I add a picture to the footer for example and the picture is in the folder of the theme, the puicture does not display. If I put it in the main wordpress folder it does display. What si the appropriate way to store all images from my theme?

Answers 1

You need to include the path to the theme.



<img src="<?php bloginfo('template_url'); ?>/footer-image.jpg">
November 17, 2017 10:06 AM

Related Questions

Images not displayed when moving site to local

Updated April 20, 2018 21:08 PM

Local installation f***ed up

Updated July 24, 2017 20:08 PM