Product Gallery Carousel
The Product Gallery Carousel Plugin is a WordPress plugin designed to enhance the display of WooCommerce product gallery images. It utilizes the Owl Carousel library for creating a carousel of product images and the Lightbox library for an attractive lightbox effect.
by Danish Iqabl · github.com/the-aiengineer/woocommerce-product-gallery-carousel
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/the-aiengineer/woocommerce-product-gallery-carousel/archive/refs/heads/main.zipA lightweight WordPress plugin that adds a responsive image carousel and lightbox experience to WooCommerce product galleries.
Overview
This project extends the standard WooCommerce product gallery with a carousel-based presentation for product images. Visitors can browse gallery images in a compact carousel and open an image in a lightbox for a larger view.
Features
- WooCommerce product gallery carousel
- Lightbox view for product images
- Shortcode-based integration
- Uses Owl Carousel for carousel behavior
- Uses a lightbox library for enlarged image viewing
- Designed to integrate with existing WooCommerce product pages
Usage
Add the shortcode below where you want the product gallery carousel to appear:
[pgc_product_gallery_carousel]
Installation
- Download or clone this repository.
- Copy the plugin into your WordPress
wp-content/plugins/directory. - Log in to WordPress.
- Go to Plugins.
- Activate the Product Gallery Carousel plugin.
- Add the shortcode to a suitable WooCommerce product template or page.
Project Structure
The plugin is intentionally small and focused so that it can be integrated into an existing WooCommerce installation without introducing a large application framework.
Development
This repository is part of my software-development portfolio and demonstrates practical WordPress and WooCommerce plugin development, frontend integration, and shortcode-based extension of an existing platform.
When extending the plugin, keep the following in mind:
- Follow WordPress coding conventions.
- Avoid loading assets globally when they are only required by the carousel.
- Keep WooCommerce-specific logic isolated from presentation code.
- Test against the current supported WordPress and WooCommerce versions before release.
Roadmap
Potential improvements include:
- Improved responsive controls
- Better accessibility and keyboard navigation
- Configurable carousel options
- Improved asset loading
- WooCommerce block/theme compatibility
- Automated testing and CI checks
License
MIT License.
See the repository license for the complete terms.