Path to WordPress Template Directory inside jQuery?

后端 未结 1 1508

My header is calling a javascript file which sends out an email:



        
相关标签:
1条回答
  • 2020-12-13 20:45

    You could create a Javascript snippet that saves the template dir in a variable, and use this later:

    <script>
    var templateDir = "<?php bloginfo('template_directory') ?>";
    </script>
    
    0 讨论(0)
提交回复
热议问题