wordpress snippets last updated   : January 28, 2015
we now have 645 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!