跳到内容

Product Secondary Image Hover

v1.0.2

PluginsKart · 2026年10月12日 上架

Add a CSS-only hover image swap to WooCommerce product loops and Product Collection blocks with no JavaScript or settings page required.

正在使用
10 以下
评分
暂无
累计下载
333
最近更新
2026年11月20日
需要 WordPress 6.7+已测试到 7.1.5PHP 8.1+

贡献者

截图

Product image on the shop page before hover.
Product image on the shop page before hover.
Secondary image shown on hover.
Secondary image shown on hover.

Product Secondary Image Hover displays the first image from a WooCommerce product’s gallery when visitors hover over the product image.

The plugin is designed for WooCommerce product listing pages, including WooCommerce Product Collection blocks and classic WooCommerce product loops.

It provides a simple CSS-based hover effect without requiring JavaScript or a configuration page.

The plugin does not modify the product image gallery on single-product pages.

Features

  • Display the first product gallery image on hover.
  • Supports WooCommerce Product Collection blocks.
  • Supports classic WooCommerce product loops.
  • Uses the WooCommerce thumbnail image size.
  • CSS-only hover effect.
  • No JavaScript required.
  • No shortcode required.
  • No settings page required.
  • Automatically skips products without gallery images.
  • Does not modify single-product pages.
  • Lightweight frontend implementation.
  • Uses the product-secondary-image CSS class for customization.

How It Works

When a product has at least one gallery image, Product Secondary Image Hover adds the first gallery image as a secondary image in the product listing.

When a visitor moves the mouse over the product image, the secondary gallery image becomes visible using a CSS transition.

The plugin works automatically after activation.

No additional configuration is required.

Customization

The secondary image uses the following CSS class:

‘product-secondary-image’

You can use this class to customize the hover image transition and appearance.

Privacy

Product Secondary Image Hover does not collect, store, or transmit personal data.

The plugin does not connect to any external service.

Requirements

WordPress 6.7 or later
WooCommerce
PHP 8.1 or later

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums