WordPress.org

Forums

set image path. (2 posts)

  1. johnboy01
    Member
    Posted 1 year ago #

    Hi im converting a precoded site into a wordpress site.

    All of the imgage sources are "img/file_name" but im storing the images in my theme folder /imgs.

    how do I get images to be found from my theme folder?

  2. Dave Naylor
    Member
    Posted 1 year ago #

    Like this:

    <img src="<?php echo get_template_directory_uri(); ?>/imgs/yourimage.jpg" />

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags