在wordpress元素页面中添加css和js文件的位置
问题描述:
I created with the elementor page with mine HTML that includes redirect to external css and js files.
example :
my elementor page have "script src='script.js'"
and "link rel='stylesheet' href='style.css'"
Where to put the script.js
file and the style.css
file ?
我使用包含重定向到外部css和js文件的我的HTML元素页面创建。 p> \ n
示例 em>: p>
我的元素或页面有 “script src ='script.js'” code>和
“link rel ='stylesheet'href ='style.css'” code> p>
script.js code>文件和
的放置位置 > style.css code>文件? p>
div>
答
Make a directory like "js" in your theme folder and put the scripts in there. In the code/template the path looks like
<?php bloginfo('template_directory'); ?>/js/script.js