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