【问题标题】:Bootstrap 4 Popovers don't work in Wordpress Understrap theme [closed]Bootstrap 4 Popovers 在 Wordpress Understrap 主题中不起作用 [关闭]
【发布时间】:2019-06-30 08:18:44
【问题描述】:

我目前在 Wordpress 中使用 Understrap 子主题。我无法使用弹出框、工具提示或垂直药丸。

这是一个活生生的例子:Sample Page

Popper.js 似乎包含在子主题中。有什么建议?我不确定丢失的谜题是什么。

我正在使用来自 GitHub 的 understrap 文档,并按原样使用 parent 和 understrap child theme 文件。

【问题讨论】:

  • 工具提示对我有用.. 你在用什么浏览器?
  • @Paddymac 感谢您的及时回复。对我不起作用,一定是一个缺失的谜题。垂直药丸也不是垂直的。 link
  • 你在关注什么文档?
  • 请将您的 JavaScript 添加到您的问题中。
  • 我遵循了 github 的底层文档,并将他们的文件用于父级和 understrap child theme

标签: javascript jquery wordpress bootstrap-4


【解决方案1】:

最新的understrap主题和child有问题。 understrap 似乎已经删除了 poppers.js。从变更日志: - 使用 bootstrap.bundle.js 代替 bootstrapjs 和 popper.js

https://github.com/understrap/understrap/blob/master/CHANGELOG.md

但是那个底层的孩子没有……

这里是关于它的讨论和可能的解决方案: https://github.com/understrap/understrap-child/issues/195

【讨论】:

    猜你喜欢
    • 2017-07-08
    • 1970-01-01
    • 2017-11-02
    • 2023-03-25
    • 2018-10-08
    • 1970-01-01
    • 1970-01-01
    • 2018-01-27
    • 2016-03-24
    相关资源
    最近更新 更多