Referencing Javascript code location in header.php properly
-
I am using some external javascript files that I reference in the header.php file with something like this (with a valid IP address used):
<script type=”text/javascript” src=”https://999.999.999.999/myscripts/concode.js”></script>
I know I can change them to us the domain name instead of the IP (better),but that also seems a little shortsighted. What’s the best way to create a dynamic site reference that pull the site location from the Permalinks for these?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Referencing Javascript code location in header.php properly’ is closed to new replies.