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 15 replies - 1 through 15 (of 28 total)

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

 *  [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/#post-3655724)
 * Try;
 *     ```
       <img src="/wp-content/themes/<?php echo bloginfo('get_template') . '/img/sample/family.jpg'; ?>" 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/#post-3655726)
 * Hmmm, it also doesnt work.
 *  [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/#post-3655727)
 * What URL does it generate?
 *  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/#post-3655729)
 * If you mean this, when I look at the source code.
 *     ```
       <img src="/wp-content/themes/ZPM pravno svetovanje/img/sample/family.jpg" alt="smiling girl" class="thumb"/>
       ```
   
 *  [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/#post-3655730)
 * Try removing the spaces in your theme’s name.
 *  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/#post-3655731)
 * wow, actually.. I think I know what is wrong now… The ‘ZPM pravno svetovanje’
   is not the name of my folder (theme) but it is 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/#post-3655734)
 * Nope it still doesnt work.
 *  [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/#post-3655736)
 * May you provide a link to the webpage with the issue?
 *  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/#post-3655738)
 * It is strange that it somehow kinda loads the first image (the logo), but not
   completeley. For the logo I used
    <img src=”<?php echo bloginfo(‘get_template’).‘/
   img/logo.png’; ?>” alt=”zveza prijateljev mladine pravno svetovanje logotip” /
   >
 * Here is the screenshot
    [http://shrani.si/f/3k/In/4FLpNLYv/logo.png](http://shrani.si/f/3k/In/4FLpNLYv/logo.png)
 *  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/#post-3655741)
 * The website is offline, in fact its on my localhost xampp
 *  [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/#post-3655744)
 * Try viewing the image itself in the browser. Can you view it? If so, check the
   differences in the URL to the `<img>` tag.
 *  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/#post-3655752)
 * 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
 * When I tried opening the image in a new window. Do you think it is a server error?
 * … ofcourse if i try to view the image itself just by opening it with browser 
   program it worked.
 *  [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/#post-3655754)
 * > When I tried opening the image in a new window. Do you think it is a server
   > error?
 * Yes, the page you’re working on right now with the `<img>` tag is on the server.
   It is referring to your problem that the image cannot be found.
 * > ofcourse if i try to view the image itself just by opening it with browser 
   > program it worked.
 * Any difference in the URL between that and the one generated in the `<img>` tag?
 *  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/#post-3655756)
 * the URL of the picture located on directory and opened with browser:
    file:///
   C:/xampp/htdocs/wordpress/wp-content/themes/ZPMpravna/img/logo.png
 * the URL of the picture on the website:
    [http://localhost/wordpress/ZPMpravna/img/logo.png](http://localhost/wordpress/ZPMpravna/img/logo.png)
 * hmmm, no wp-content and themes on the website image url…
 *  [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/#post-3655760)
 * Try using this URL instead;
 *     ```
       <img src="img/sample/family.jpg" alt="smiling girl" class="thumb"/>
       ```
   

Viewing 15 replies - 1 through 15 (of 28 total)

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

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
