WordPress path url in js script file
To get the site url in the js file we can have different ways but worked for is listed below. You could avoid hardcoding the full path by setting a JS variable in the header of your template, before wp_head() is called, holding the template URL. Like: and call in js file Source : http://stackoverflow.com/questions/5221630/wordpress-path-url-in-js-script-file […]
WordPress path url in js script file Read More »