Changing URL of scripts, scripts outside theme folder?

Is it possible to have css and js scripts outside of template directory? If it is possible, how can I achieve it?Basical

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
Add a comment  | 

1 Answer 1

Reset to default 1

Yes, 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

相关推荐

  • Changing URL of scripts, scripts outside theme folder?

    Is it possible to have css and js scripts outside of template directory? If it is possible, how can I achieve it?Basical

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信