WordPress.org

Ready to get started?Download WordPress

Forums

set image path. (2 posts)

  1. johnboy01
    Member
    Posted 6 months 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 6 months ago #

    Like this:

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

Reply

You must log in to post.

About this Topic

Tags