Tags

<?php bloginfo(‘template_directory’); ?>

Output : http://projectname/wp-content/themes/yourtheme

How to use this code :

logo

Insert image.png in this directory : /project/wp-content/themes/yourtheme/images/image.png

<img alt=”” title=”image” src=”<?php bloginfo(‘template_directory’); ?>/images/image.png”>

Advertisements