【问题标题】:when I removed footer in my homepage, other plugin not work on wordpress foundation当我在主页中删除页脚时,其他插件在 wordpress 基础上不起作用
【发布时间】:2015-12-24 17:10:51
【问题描述】:

当我想添加自己的页脚时,其他插件不起作用,例如幻灯片(名称:Ultimate Responsive Image Slider)和插件(名称:video-player)......所以请帮助我!!!!!!

代码如下:

<div class="row" >
        <div class="twevle columns"><h1>Test Footer</h1></div>
</div>
<?php //get_footer(); ?>

click it for show images footer | click here for show images Slideshow not work:

【问题讨论】:

  • 这需要更多信息,特别是什么插件? “不工作”是什么意思?您是否看到错误消息? get_footer() 由什么组成?
  • 查找文档后:尝试将wp_footer(); 添加到您的页脚文件中。它可能会添加相关功能,如果可行,我会将其添加到我的答案中。
  • 在页脚文件中有 wp_footer();已经。但我只想在我的主页中删除 get_footer() ,但是当我删除它时,它会影响我告诉你的其他插件。
  • 非常感谢兄弟,现在可以了。
  • @srempen 你看到我关于将 wp_footer() 移动到正文末尾的回答了吗?或者你是怎么解决的?

标签: php wordpress wordpress-theming


【解决方案1】:

因为页脚调用了 wp_footer() 加载 JS 库

在你不想添加页脚的主页中

wp_footer();

到主页底部。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-12
    • 2021-10-03
    • 2020-10-03
    • 1970-01-01
    • 2018-12-29
    • 1970-01-01
    相关资源
    最近更新 更多