开发者

How to add properly a plugin to a theme in WordPress

开发者 https://www.devze.com 2023-01-18 19:25 出处:网络
I have downloaded an existing plugin from the web to use in my theme. How do I add it correctly to the th开发者_运维知识库eme I am developing without using wp-content/plugins folder?Depends on the plu

I have downloaded an existing plugin from the web to use in my theme. How do I add it correctly to the th开发者_运维知识库eme I am developing without using wp-content/plugins folder?


Depends on the plugin, but you're going to have to extract the functions and add them to your own functions.php file in your theme. http://codex.wordpress.org/Theme_Development#Functions_File

And if the plugin requires css and js files, you need to put them in your theme folder and link to them in your header.php. http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29

0

精彩评论

暂无评论...
验证码 换一张
取 消