Title: Problems with implementing img src withwordpress
Last modified: August 21, 2016

---

# Problems with implementing img src withwordpress

 *  Resolved [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/)
 * Hello!
 * I’ve got a problem and it’s that it wont show the image.
 * I used this code:
 * `<img src="<?php echo bloginfo('get_template') . '/img/sample/family.jpg'; ?>"
   alt="smiling girl" class="thumb"/>`
 * Please help!

Viewing 13 replies - 16 through 28 (of 28 total)

[←](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/?output_format=md)
[1](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/?output_format=md)
2

 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655764)
 * You mean using
    `<img src="img/sample/family.jpg" alt="smiling girl" class="thumb"/
   >`
 * instead of
 * `<img src="/wp-content/themes/<?php echo bloginfo('get_template') . '/img/sample/
   family.jpg'; ?>" alt="smiling girl" class="thumb"/>`
 * It still doesnt show the picture. But when i designed the website without wordpress
   implementation it worked ok.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655765)
 * Yes, sorry I meant that but I got the URL wrong. Try this instead;
 *     ```
       <img src="img/logo.png" alt="smiling girl" class="thumb"/>
       ```
   
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655767)
 * Now it is even smaller…
 * [http://shrani.si/f/1z/ge/3i0WgK2l/logo1.png](http://shrani.si/f/1z/ge/3i0WgK2l/logo1.png)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655768)
 * Is that due to CSS applying to the “thumb” class?
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655769)
 * Hmm no, even without the thumb class it is the same size.. Smaller than before.
 * and the thumb class is for that family picture.
 * .post-item img.thumb {
 *  float:left;
    padding-right:20px; padding-left:20px; padding-top:20px;
 *  }
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655771)
 * Have you concluded the image is now loading?
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655773)
 * What do you mean by that?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655774)
 * Do you still get this error;
 * > Object not found!
   > The requested URL was not found on this server. The link on the referring page
   > seems to be wrong or outdated. Please inform the author of that page about 
   > the error.
   > If you think this is a server error, please contact the webmaster.
   > Error 404
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655775)
 * Yep I still get it.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655776)
 * Sorry, I cannot hypothesize anymore.
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655781)
 * Hmmm, when i use
 *     ```
       <img src="<?php echo bloginfo('get_template') . '/img/sample/family.jpg'; ?>" alt="smiling girl" class="thumb"/>
       ```
   
 * its the URL
 * `<img src="ZPMpravna/img/sample/family.jpg" alt="smiling girl" class="thumb"/
   >`
 * but the index.php file is located in ZPMpravna so isnt that the URL should be“/
   img/sample/family.jpg” without the ZPMpravna?
 *  Thread Starter [jeroslav](https://wordpress.org/support/users/jeroslav/)
 * (@jeroslav)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655840)
 * Ok now it works!
 * with this:
 * `<img src="<?php echo bloginfo('template_directory') . '/img/sample/family.jpg';?
   >" alt="smiling girl" class="thumb"/>`
 * its template_directory instead of get_template 😀
 * anyway thanks for your time Andrew! 🙂
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655841)
 * And thanks for sharing the answer to the community 🙂

Viewing 13 replies - 16 through 28 (of 28 total)

[←](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/?output_format=md)
[1](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/?output_format=md)
2

The topic ‘Problems with implementing img src withwordpress’ is closed to new replies.

## Tags

 * [found](https://wordpress.org/support/topic-tag/found/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [not](https://wordpress.org/support/topic-tag/not/)

 * 28 replies
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/problems-with-implementing-img-src-withwordpress/page/2/#post-3655841)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
