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 picture does not display.

If I put it in the main wordpress folder it does display. What is the appropriate way to store all images from my theme?


You need to include the path to the theme.



<img src="<?php bloginfo('template_url'); ?>/footer-image.jpg">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.