Media in Templates (3 posts)

  1. smith928
    Posted 2 years 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?


  2. kbellagio
    Posted 2 years 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
    Posted 2 years ago #

    Thank you. I will give that a try.

Topic Closed

This topic has been closed to new replies.

About this Topic