c9c99a6b885fd57718ad77b59d1edc5abcd8d9f7
Add 15 Twig template overrides for the product archive and shop loop: - archive-product: 3+9 grid layout with optional filter sidebar - content-product: card component with hook-based content injection - content-product-cat: category card with thumbnail - product-searchform: input-group with search icon button - loop/loop-start, loop-end: responsive row-cols grid - loop/header: archive title with description hook - loop/result-count: showing X-Y of Z with aria-relevant - loop/orderby: form-select-sm sort dropdown - loop/pagination: delegates to components/pagination.html.twig - loop/no-products-found: alert-info empty state - loop/add-to-cart: btn-primary-sm with AJAX data attributes - loop/price: fw-semibold with sale/regular markup - loop/rating: Bootstrap Icon stars (full, half, empty) - loop/sale-flash: badge bg-danger positioned overlay CSS additions: product card hover, sale badge z-index, star rating sizing, price del/ins styling, WooCommerce grid reset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WooCommerce Bootstrap
A WordPress child theme of WP Bootstrap that overrides all WooCommerce plugin templates with Bootstrap 5 structures and styling.
Requirements
- WordPress 6.7+
- PHP 8.3+
- WP Bootstrap theme (parent)
- WooCommerce plugin
Installation
- Install and activate the parent theme
wp-bootstrap - Install and activate the
woocommerceplugin - Upload
wc-bootstraptowp-content/themes/ - Run
composer installin the theme directory - Activate the theme in WordPress Admin > Appearance > Themes
What This Theme Does
The WooCommerce plugin ships with its own Twig templates using custom CSS classes. This child theme overrides those templates to use Bootstrap 5 components, ensuring visual consistency with the WP Bootstrap parent theme.
Key Features
- Bootstrap 5 markup for all plugin templates
- Responsive design inheriting WP Bootstrap's grid system
- Dark mode support via WP Bootstrap's theme toggle
- Translation-ready
Development
Directory Structure
wc-bootstrap/
├── assets/css/ # Custom CSS overrides
├── assets/js/ # Custom JavaScript
├── inc/ # PHP classes (PSR-4)
├── languages/ # Translation files
├── templates/ # Bootstrap 5 Twig template overrides
├── composer.json
├── functions.php
└── style.css
Building Translations
for po in languages/wc-bootstrap-*.po; do msgfmt -o "${po%.po}.mo" "$po"; done
Releases
Releases are automated via Gitea Actions. Push a tag matching vX.X.X to trigger a release build.
git tag -a v0.1.0 -m "Version 0.1.0 - Initial release"
git push origin v0.1.0
License
GPL-2.0-or-later
Author
Marco Grätsch - https://src.bundespruefstelle.ch/magdev
Description
Languages
Twig
70.7%
PHP
19.5%
CSS
7.2%
JavaScript
1.1%
Dockerfile
0.9%
Other
0.6%