linking Wordpress to files within the theme - bloginfo(template_directory);
Copy this code and paste it in your HTML
<img src="<?php bloginfo('template_directory'); ?>/images/myimage.jpg" />
<!-- which replaces -->
<img src="images/myimage.jpg" />
Report this snippet
Comments
Subscribe to comments