Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WooCommerce 3.0将捆绑脚本和样式、缩放、Photosweep排入队列_Woocommerce - Fatal编程技术网

WooCommerce 3.0将捆绑脚本和样式、缩放、Photosweep排入队列

WooCommerce 3.0将捆绑脚本和样式、缩放、Photosweep排入队列,woocommerce,Woocommerce,我在我的WooCommerce插件中使用prettypto,它是从WooCommerce文件加载的,但在V3.0中,WooCommerce删除了prettypto并开始使用其他脚本,如 柔性滑块 变焦 擦照片 我想让他们的这些捆绑脚本排队,但找不到一个函数来实现这一点。任何帮助都将不胜感激 谢谢我不确定我是否完全理解您的问题,但如果我理解了,也许这会有所帮助: 在function.php中添加以下行: add_action( 'after_setup_theme', 'photoswipe_

我在我的WooCommerce插件中使用prettypto,它是从WooCommerce文件加载的,但在V3.0中,WooCommerce删除了prettypto并开始使用其他脚本,如

  • 柔性滑块
  • 变焦
  • 擦照片
我想让他们的这些捆绑脚本排队,但找不到一个函数来实现这一点。任何帮助都将不胜感激


谢谢

我不确定我是否完全理解您的问题,但如果我理解了,也许这会有所帮助:

function.php中添加以下行:

add_action( 'after_setup_theme', 'photoswipe_gallery_setup' );

function photoswipe_gallery_setup() {
  add_theme_support( 'wc-product-gallery-zoom' );
  add_theme_support( 'wc-product-gallery-lightbox' );
  add_theme_support( 'wc-product-gallery-slider' );
}
这将支持 您可以启用/禁用删除/注释对应行的功能


很高兴它起作用了。请将答案标记为解决方案。谢谢,我已经这么做了,但因为我的名声还不到15岁,所以还不会公开露面。