admin管理员组文章数量:1417419
Is it possible to have css and js scripts outside of template directory? If it is possible, how can I achieve it?
Basically, instead of having:
.css
I want to have:
.css
Is it possible to have css and js scripts outside of template directory? If it is possible, how can I achieve it?
Basically, instead of having:
http://example/wp-content/themes/mytheme/assets/mystyle.css
I want to have:
http://example/assets/mystyle.css
Share
Improve this question
edited Aug 10, 2019 at 14:08
dodo254
asked Aug 8, 2019 at 14:14
dodo254dodo254
1617 bronze badges
1 Answer
Reset to default 1Yes, you can enqueue JS and CSS from anywhere - even other sites. However, your theme will have to have a "style.css" with at minimum the required comments for WP to recognize it as a theme that can be activated.
本文标签: Changing URL of scriptsscripts outside theme folder
版权声明:本文标题:Changing URL of scripts, scripts outside theme folder? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745252704a2649918.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论