dongzhang3482 2015-02-19 12:54
浏览 46

Wordpress安装中的两个版本的Isotope

I use a Wordpress theme that loads Isotope v1.5.25 jQuery plugin for theme functions. But I also use a wordpress plugin that loads Isotope v2.0.0. These two jQuery versions conflict and results in bugs etc. How can I prevent this from happening?

  • 写回答

1条回答 默认 最新

  • dqv84329 2015-02-19 15:40
    关注

    You will need to disable one of the two scripts, I will say, if the theme wont throw any bugs by using the version 2 of the plugin, then you will need to disable the older version by commenting the include of the theme version of Isotope.

    This can be done from two ways:

    • If the theme uses wp_register_script/wp_enqueue_script, then you will have to search for this script enqueue line and comment it, or remove it from any script that uses it as a requirement
    • If no wp_register_script/enqueue is used, then most likely the file is loaded in the header.php of your theme, go there and remove the tag that includes the file.
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 MATLAB动图问题
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名