wordpress - 灯箱 ix 中的 Woocommerce 产品图像未显示在产品详细信息页面上
问题描述
我有一个网站,其中产品库在产品详细信息页面上不起作用,我尝试添加第三方插件,但似乎没有任何效果。
在这里,当您单击产品图片时,它应该在灯箱中作为产品库打开。
https://bosheimsmarken.no/produkt/reinrot-te-med-tea-shotnon-binding-subscriptions/
解决方案
尝试安装此插件并检查主题选项或 woocommerce 选项中是否有禁用此图库的选项。
Codeixer 的 Woocommerce 产品图库滑块
还在活动主题中的functions.php中添加此代码
add_action( 'after_setup_theme', 'bbloomer_remove_zoom_lightbox_theme_support', 99 );
function bbloomer_remove_zoom_lightbox_theme_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
remove_theme_support( 'wc-product-gallery-slider' );
}
推荐阅读
- c - 无法使用 OpenAL 捕获 send() 失败
- oracle - PL SQL 记录操作
- r - 重新排序因子不适用于分组数据
- api - 如何与 Ionic 中提供的 API 进行匹配和验证?
- postgresql - 来自 Windows Anaconda 的 Postgresql 的 pg_hba.conf
- javascript - 使用 JS 按钮从嵌入在 html 站点中的 php 数组中取消设置单个项目
- android - 导航栏行为背后的Android视图,如何解决?
- python - Anaconda 基础环境
- docker - 如何配置动态配置的 Docker 代理
- apache - 通过 htaccess 从旧 HTTPS 域重定向到新 HTTPS 域的问题?