wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Template directory path

wordpress snippet

Adding this PHP code snippet to your wordpress theme will automatically generate the file path to your template directory.

snippet :  copy
<?php bloginfo('template_directory'); ?>
snippet :  copy
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js" /></script>

Did you like this post? If so please share it with your friends. Thanks!