using locate_template for javascript/css
-
Hi!
I found myself using this:
<script type="text/javascript" src="<?php echo substr(locate_template(array('js/3col-shelf.js')), strlen(ABSPATH));?>"></script>For overridable javascript/css files. Is there more native way to do this?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘using locate_template for javascript/css’ is closed to new replies.