WordPress.org

Ready to get started?Download WordPress

Forums

Relative Path to Image (3 posts)

  1. pylorns
    Member
    Posted 5 years ago #

    How do I link to an image in a theme?

    example:

    <img src="path-to-theme/images/image.jpg">

    I don't want to put the static or exact path - am looking for the php command to do this? I can't seem to find any reference to this in the codex yet...

  2. Anonymous
    Unregistered
    Posted 5 years ago #

    Have you try :
    <img src="<?php bloginfo('template_url'); ?>/images/image.jpg">

  3. Anonymous
    Unregistered
    Posted 5 years ago #

    See that
    I am french. Sorry for my bad english.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags