Linking to an Image Folder Within a WordPress Theme

Linking to an Image Folder Within a WordPress Theme


During WordPress theme Development you will more then likely need to display some images that are located within your theme directory.

The location of the images folder can vary greatly. It really comes down to how you like to set things up.

Generally speaking if you were to have an images folder in the root of your theme you can link to it like so from your php files:

<img src=" bloginfo("stylesheet_directory'); ?>/images/your-image.png">

Leave a Reply

Your email address will not be published. Required fields are marked *

Secured By miniOrange