WordPress.org

Ready to get started?Download WordPress

Forums

Media in Templates (3 posts)

  1. smith928
    Member
    Posted 8 months ago #

    I'm a brand new user of WordPress, managing a site that was set-up by professionals using (in part) custom templates. In one of those templates (news.php), the following code references a picture (mike.png) that needs to be updated:

    <td width="110"><a>/index.php/politics/"><img src="<?php bloginfo('url') ?>/images/mike.png" alt="US </a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    The image does not show up in the media library. Where does this image reside and how do I replace it with a new image?

    Thanks

  2. kbellagio
    Member
    Posted 8 months ago #

    It should be under domain.com/images folder in the FTP. Here is a link to the bloginfo tag: http://codex.wordpress.org/Function_Reference/bloginfo

    To replace it what I would suggest is just uploading the new image and using that URL and replacing the following with said URL.

    <?php bloginfo('url') ?>/images/mike.png

  3. smith928
    Member
    Posted 8 months ago #

    Thank you. I will give that a try.

Reply

You must log in to post.

About this Topic