Product Secondary Image Hover for WooCommerce
Show a second product photo when shoppers hover over a product in your WooCommerce shop and archive pages. It uses the first image from the product's gallery, runs on CSS alone, and works the moment you activate it.
Purchase Your Product
- Free to download and use – no license fee
- Works automatically after activation – no settings page, no shortcode
- CSS-only hover effect – no JavaScript added to your store
- Setup support included – ask a question anytime
Guaranteed Safe Checkout
BENEFITS
Show More of Every Product, Without Slowing the Page Down
Shoppers get a second look at a product without clicking through, and you don’t add scripts, settings screens, or extra setup to your store.
- Works automatically once activated — nothing to configure
- Supports Product Collection blocks and classic product loops
- Products without a gallery image are left exactly as they are

0 JavaScript
Hover effect is pure CSS

0 Settings
No settings page to set up

1 CSS Class
product-secondary-image for custom styling

Free
No license fee
Product Secondary Image Hover for WooCommerce Hover swaps a product’s main image for the first image in its WooCommerce gallery when a visitor hovers over it. It’s made for product listing pages including WooCommerce Product Collection blocks and classic product loops and does the whole job with a CSS transition, so there’s no JavaScript and no configuration page. Single-product pages and their image galleries are not modified.
The plugin comes with built-in CSS styling and transition effects, so there’s nothing to configure and no custom CSS to write. Each product’s first gallery image acts as its secondary image, products without gallery images keep their main image, and the effect works across shop pages, category pages, and product listings.
Full feature list
- Shows 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 and no settings page required
- Automatically skips products that have no gallery image
- Leaves single-product pages untouched
- Accessible secondary image markup
- Styling hook: the
product-secondary-imageCSS class
Before you start
WooCommerce must be installed and active. You’ll also need WordPress 6.7 or later and PHP 8.1 or later.
Method 1: From your WordPress admin
- Make sure WooCommerce is installed and activated.
- Download the plugin ZIP, then go to Plugins → Add New Plugin → Upload Plugin and install it.
- Activate Product Secondary Image Hover for WooCommerce.
- Open your WooCommerce shop or a 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 and go to Plugins → Installed Plugins.
- Find “Product Secondary Image Hover for WooCommerce” and click Activate.
The first gallery image appears when you hover over the product image. No extra CSS is needed.
Version history
1.0.2
- Renamed plugin to “Product Secondary Image Hover for WooCommerce”.
- Main plugin file renamed. Please reactivate the plugin after updating.
1.0.1
- Updated plugin name to Product Secondary Image Hover.
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.
Documentation
There’s no settings screen to document — the plugin works after activation. The Installation tab covers setup, and the Customization notes under Plugin Details cover styling with the product-secondary-image class.
Support
Have a question or hit a problem? Post in the WordPress.org support forum or reach us through PluginsKart Support.
FEATURES
Everything the Plugin Does, Explained

Automatically Show the Second Product Image
When a product has images in its WooCommerce gallery, the plugin picks the first gallery image and shows it when a customer hovers over the main product image. Shoppers get another view of the product right from the shop page, without opening the product details page.
- Uses the first image in the product’s WooCommerce gallery
- Works as soon as the plugin is activated — no configuration needed
- Built-in CSS and smooth transition effects, so no custom CSS is required
The Default View Stays Exactly as It Is
Before anyone interacts with a product, WooCommerce shows its main image as usual. The product name, price, and other details appear as set in your shop layout, and no secondary image is visible. The main image stays in place until the customer hovers over it.
- The main product image is displayed by default
- Product details show as configured in your WooCommerce shop layout
- Nothing changes until the customer hovers over the image


Hover to Preview the First Gallery Image
When the mouse pointer moves over the product image, the plugin swaps the main image for the first image in the product’s gallery, using a smooth transition. When the pointer moves away, the product returns to its original main image.
- The first image uploaded to the product gallery is used as the secondary image
- A smooth transition makes the swap feel natural
- Moving the pointer away restores the original image
Works Across Shop, Category, and Product Listings
The hover effect applies on WooCommerce product listings such as your shop page and category pages. Each product swaps its own image independently, so hovering over one product never changes another. Products without extra gallery images keep showing their main image.
- Each product’s image swap works independently
- Works in Product Collection blocks and classic product loops
- Products without gallery images stay exactly as they were

HOW IT WORKS
Three Steps, Then You’re Done
Add gallery images
Give your WooCommerce products at least one image in their product gallery. That first gallery image is the one shown on hover.
Activate the plugin
Install and activate it with WooCommerce running. There’s nothing to configure afterwards.
Hover to preview
Open your shop or an archive page and hover over a product image. The secondary image fades in with a CSS transition.
COMPLETE FEATURE LIST
Everything Included, at a Glance
A quick reference of what the plugin does and what you don’t have to set up.
Automatic image switching
Shows the first gallery image when a customer hovers over the main product image.
No configuration
Activate the plugin and the effect works. No settings page, shortcode, or custom CSS needed.
Built-in CSS and transitions
Styling and smooth transition effects come with the plugin.
Gallery image support
Uses the first available image from the WooCommerce product gallery.
Fallback support
Products without gallery images keep displaying their main image.
Product listing compatibility
Works on shop pages, category pages, and other product listings.
Independent per product
Each product swaps its own image, and hovering never affects the others.
Blocks and classic loops
Supports WooCommerce Product Collection blocks and classic product loops.
Lightweight
The hover effect is CSS-based, so no JavaScript is added to your store.
Easy to restyle
Use the product-secondary-image CSS class to adjust the look from your theme.
Accessible markup
The secondary image is output with accessible markup.
Single-product pages untouched
The effect is disabled on single-product pages, so product galleries are not modified.
USE CASES
Made for Stores Where a Second Angle Helps
Any WooCommerce store whose products look different from another side, inside, or in use can put that second photo right in the product grid.

Fashion & apparel

Footwear

Jewelry & accessories

Home & decor

Electronics & gadgets

Beauty & personal care
COMPATIBILITY
Works With Your Current Stack
| Requirement | Minimum | Status |
|---|---|---|
| WordPress | 6.7 or higher | Fully supported (tested up to 7.1.4) |
| PHP | 8.1 or higher | Fully supported |
| WooCommerce | Required | Product Collection block and classic product loops supported |
| Single-product pages | – | Not modified by the plugin |
| Page builders | – | Not yet verified |
| Multisite | – | Not yet verified |
This plugin needs WooCommerce, because it works on WooCommerce product listings. Page builders and multisite are marked “not yet verified” rather than “supported,” since this is a 1.0.0 release and neither has been tested yet.
FAQ’s
Pkart Product Secondary Image Hover — Questions, Answered
Straight answers about setup, gallery images, and where the hover effect works.
Is Product Secondary Image Hover for WooCommerce free?
Yes. It’s a free plugin available through the WordPress Plugin Directory, with no license fee.
Does the plugin require WooCommerce?
Yes. It works on WooCommerce product listings, so WooCommerce needs to be installed and active.
Does it work with Product Collection blocks and classic product loops?
Yes. Both the WooCommerce Product Collection block and classic WooCommerce product loops are supported.
Does it work on single-product pages?
No. It is built for shop and archive listings, and it leaves the single-product image gallery untouched.
Which image appears when a visitor hovers?
The first image in the product’s WooCommerce gallery is shown in place of the main product image.
What happens if a product has no gallery image?
Nothing changes for that product. Its main image stays as it is and no secondary image is added.
Does the plugin use JavaScript?
No. The hover effect is handled entirely with CSS.
Do I need to configure anything?
No. There is no settings page and no shortcode. The effect works automatically once the plugin is activated.
Can I customize the hover effect?
Yes. The secondary image carries the product-secondary-image CSS class, so you can adjust its transition and appearance from your theme’s CSS.

