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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745252705a4618773.html
评论列表(0条)