Linux 软件免费装
Banner图

WooSwipe WooCommerce Gallery

开发者 deanoakley
jinksi
更新时间 2026年10月13日 14:01
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

gallery woocommerce photoswipe slick product gallery

下载

1.1.10 1.1.11 1.1.12 1.1.13 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.6.1 1.1.6.2 1.1.6.3 1.1.6.4 1.1.6.5 1.1.6.6 1.1.6.7 1.1.6.8 1.1.7.0 1.1.8.0 1.1.8.10 1.1.8.11 1.1.8.5 1.1.8.6 1.1.8.7 1.1.8.8 1.1.8.9 2.0 2.0.1 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.2 3.0.3 3.0.5 3.0.6 3.0.7 3.0.8

详情介绍:

WooSwipe replaces the default WooCommerce product gallery with a clean PhotoSwipe lightbox and Slick thumbnail carousel. It works with your WooCommerce product image settings. Adjust sizes under Appearance → Customize → WooCommerce → Product Images. Regenerate thumbnails after changing sizes (for example with AJAX Thumbnail Rebuild). If your theme registers its own image sizes, those may take priority. Features Developer hooks Actions Filters Zoomed image size example add_filter( 'wooswipe_zoomed_image_size', 'wooswipe_max_image_size', 10, 1 ); function wooswipe_max_image_size( $size ) { return 'large'; } More info: WooSwipe on Thrive · GitHub

安装:

  1. Upload /wooswipe/ to the /wp-content/plugins/ directory, or install from Plugins → Add New.
  2. Activate WooSwipe (WooCommerce must be active).
  3. Optional: configure options under WooCommerce → WooSwipe.
  4. View a product page to see the gallery.

屏幕截图:

  • Popup / lightbox layout

升级注意事项:

3.0.13 Updates the plugin banners and gallery screenshot. 3.0.12 Fixes the product gallery stretching full width on classic themes (summary should sit beside the images). Recommended update. 3.0.11 Fixes the product gallery stretching full width on classic themes (summary should sit beside the images). Recommended update. 3.0.10 Fixes duplicate galleries on block themes (e.g. Twenty Twenty-Four). Recommended update. 3.0.9 Recommended update: featured-image exclusion, variation switching, PHP 8 safety, and admin/settings hardening. Tested with WordPress 7.0 and WooCommerce 10.9.

常见问题:

How do I hide the featured image from the product gallery?

Use this in your theme’s functions.php or a code-snippets plugin. WooSwipe respects it for both the main image and thumbnails (from 3.0.9): function remove_featured_image( $html, $attachment_id ) { global $post; if ( ! $post ) { return $html; } $featured_image = get_post_thumbnail_id( $post->ID ); if ( (int) $attachment_id === (int) $featured_image ) { $html = ''; } return $html; } add_filter( 'woocommerce_single_product_image_thumbnail_html', 'remove_featured_image', 10, 2 ); Or use the WooSwipe-specific filter: add_filter( 'wooswipe_include_attachment', function( $include, $attachment_id ) { global $post; if ( $post && (int) $attachment_id === (int) get_post_thumbnail_id( $post->ID ) ) { return false; } return $include; }, 10, 2 ); When the featured image is excluded, WooSwipe uses the first gallery image as the main image.

The gallery does not work

This is usually a JavaScript conflict. Try:

  1. Disable other plugins one by one to find a conflict.
  2. Switch temporarily to a default theme (e.g. Twenty Twenty-Four).
  3. Check the browser console for script errors.

Can I load a product gallery via shortcode?

Yes. Use [product_page id="123"] with the correct product ID.

The gallery is full width and product details sit underneath

That was a 3.0.10 regression on classic (PHP) themes: WooSwipe forced #wooswipe to width: 100%. Update to 3.0.12. Block themes (Twenty Twenty-Four / Twenty Twenty-Five) still use a full-width gallery inside their column.

更新日志:

3.0.13 3.0.12 3.0.11 3.0.10 3.0.9 3.0.8 3.0.3 2.0.1 2.0 1.1.13 1.1.12 1.1.11 1.1.10 1.1.9 1.1.8.11 1.1.8.10 1.1.8.9 1.1.8.8 1.1.8.7 1.1.8.6 1.1.8.5 1.1.7.0 1.1.6.9 1.1.6.8 1.1.6.7 1.1.6.6 1.1.6.5 1.1.6.3 1.1.6.2 1.1.6 1.1.4 1.1.3 1.1.1 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1