linking Wordpress to files within the theme - bloginfo(template_directory);


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <img src="<?php bloginfo('template_directory'); ?>/images/myimage.jpg" />
  2.  
  3. <!-- which replaces -->
  4.  
  5. <img src="images/myimage.jpg" />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.