Pkart Product Secondary Image Hover
Pkart Product Secondary Image Hover
Description
Pkart 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, Pkart 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
Pkart 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
Installation
Method 1: WordPress Admin
- Make sure WooCommerce is installed and activated.
- Upload the plugin ZIP file through Plugins > Add New Plugin > Upload Plugin.
- Install the plugin.
- Activate Pkart Product Secondary Image Hover.
- Visit your WooCommerce shop or product archive.
- Hover over a product image that has a gallery image.
Method 2: Manual Installation
- Extract the plugin ZIP file.
- Upload the plugin folder to: /wp-content/plugins/
- Log in to the WordPress dashboard.
- Go to Plugins Installed Plugins.
- Locate “Pkart Product Secondary Image Hover”.
- Click Activate.
The first gallery image will appear when hovering over the product image.
No additional CSS configuration is required.
Faq
Yes. Pkart Product Secondary Image Hover requires WooCommerce.
Yes. The plugin supports WooCommerce Product Collection blocks.
Yes. The plugin supports classic WooCommerce product loops.
No. The plugin is intended for product listing and archive pages and does not modify the single-product image gallery.
The first image from the product’s WooCommerce gallery is displayed.
The product’s main image remains unchanged. No secondary image is added.
No. The hover effect is handled entirely with CSS.
No. The plugin works automatically after activation.
Yes. The secondary image uses the product-secondary-image CSS class. You can customize its appearance and transition using your theme’s CSS.
Reviews
Changelog
1.0.0
- Initial release.
- Displays the first product gallery image as a secondary image on hover.
- Supports classic WooCommerce product loops.
- Supports the WooCommerce Product Collection block.
- CSS-based hover effect (no JavaScript required).
- Adds the
product-secondary-imageCSS class for custom styling. - Accessible secondary image markup.
- Compatible with WooCommerce product thumbnails.
- Disabled on single-product pages.

