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

Wordpress loading very slow on MAMP Pro

Updated July 23, 2018 05:08 AM