简体   繁体   English

Wordpress 自定义主题页脚中的脚本

[英]Scripts in footer in Wordpress custom theme

Hi i created a wordpress site, starting from one html template.嗨,我创建了一个 wordpress 站点,从一个 html 模板开始。 I installed a naked theme, and modified header.php, footer.php ect adding the specific part of the html theme.我安装了一个裸主题,并修改了 header.php、footer.php 等,添加了 html 主题的特定部分。

Now i have installed one plugin but it seem no to work.现在我已经安装了一个插件,但它似乎不起作用。 I discovered that the plugin script was missing in the footer, there were only the html theme scripts.我发现页脚中缺少插件脚本,只有 html 主题脚本。

Is there a specific method for add the plugins scripts into the custom footer.php?是否有将插件脚本添加到自定义 footer.php 中的特定方法?

Thanks谢谢

wp_head(); to header.php and wp_footer();header.phpwp_footer(); to footer.php and plugins can load js or css when they need.footer.php和插件可以在需要时加载 js 或 css。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM