Title: Add image into widget
Last modified: August 31, 2016

---

# Add image into widget

 *  Resolved [teamcanada613](https://wordpress.org/support/users/teamcanada613/)
 * (@teamcanada613)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/add-image-into-widget/)
 * hey there, i am trying to make my widget echo an image through the backend (not
   change-able by user) but i keep getting an error,
 * i am trying to do something along these lines
 *     ```
       echo '<img src="<?php bloginfo('template_directory'); ?>/inc/img/logo.png">' . PHP_EOL
       ```
   
 * but due to the fact it would literally print the php part inside as text, i get
   an error, and ideas on a workaround?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/add-image-into-widget/#post-7074029)
 * You can use only html
 * <img src=”the path from your image you can copy it from your library” />
 * in a text widget
 * 🙂
 *  Thread Starter [teamcanada613](https://wordpress.org/support/users/teamcanada613/)
 * (@teamcanada613)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/add-image-into-widget/#post-7074086)
 * Thanks for your reply 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add image into widget’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [teamcanada613](https://wordpress.org/support/users/teamcanada613/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/add-image-into-widget/#post-7074086)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
