Problem

You need to add an image to your WordPress theme but it won’t display in your browser.

Solution

Use the bloginfo() function to get the root of your theme.

<?php bloginfo('stylesheet_directory'); ?> 

Example

 <img src="<?php bloginfo('stylesheet_directory'); ?>/images/example.jpg" alt="Example" />