不需要的 "Expand" link 不会消失。无法追根溯源。 display:none;不工作。 (WordPress)
Unwanted "Expand" link won't go away. Can't trace source. display:none; not working. (Wordpress)
如在 alcapparel.com 的任何产品上所见:
http://www.alcapparel.com/shop/clothing/looter-crop-tee/
如您所见,"Expand" 一词位于产品图片的左上角。我已经重新安装了 YITH WooCommerce Magnifier 插件,据报道他们在两天前对其进行了修补,但我在文件中的任何地方都找不到这个词的来源。我也试过用
隐藏它
.pp_expand {display: none !important;}
但这也不管用。
我很困惑。请帮忙?
更新:
用这个CSS强行隐藏。将其放入任何 .css 文件
.yith_magnifier_mousetrap a {
display:none !important;
}
旧答案:
HTML的link可以追溯到
<a style="display: inline;" title="Expand the image" class="pp_expand" href="#">Expand</a>
将此更改为
<a style="display: none;" title="Expand the image" class="pp_expand" href="#">Expand</a>
如果您无法追踪此 link/file 的来源,它很可能来自 javascript 或您正在使用的插件。
如在 alcapparel.com 的任何产品上所见:
http://www.alcapparel.com/shop/clothing/looter-crop-tee/
如您所见,"Expand" 一词位于产品图片的左上角。我已经重新安装了 YITH WooCommerce Magnifier 插件,据报道他们在两天前对其进行了修补,但我在文件中的任何地方都找不到这个词的来源。我也试过用
隐藏它 .pp_expand {display: none !important;}
但这也不管用。
我很困惑。请帮忙?
更新: 用这个CSS强行隐藏。将其放入任何 .css 文件
.yith_magnifier_mousetrap a {
display:none !important;
}
旧答案:
HTML的link可以追溯到
<a style="display: inline;" title="Expand the image" class="pp_expand" href="#">Expand</a>
将此更改为
<a style="display: none;" title="Expand the image" class="pp_expand" href="#">Expand</a>
如果您无法追踪此 link/file 的来源,它很可能来自 javascript 或您正在使用的插件。