网站优化

网站优化

Products

当前位置:首页 > 网站优化 >

在wordpress元素页面中添加css和js文件的位置

GG网络技术分享 2025-03-18 16:12 6


问题描述:

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 ?

图片转代码服务由CSDN问答提供

感谢您的意见,我们尽快改进~

功能建议

我使用包含重定向到外部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

标签:

提交需求或反馈

Demand feedback