Comments (2)
See, there is a missing template. We'll fix this in 5.2.1.0, but you can hotfix this easily. https://dev.bootscore.me/product-category/products/
Hotfix
- Create file
content-product-cat.php
and insert following code:
<?php
/**
* The template for displaying product category thumbnails within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-product-cat.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 4.7.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div <?php wc_product_cat_class( 'col-md-6 col-lg-4 col-xxl-3 mb-4', $category ); ?>>
<div class="card">
<?php
/**
* The woocommerce_before_subcategory hook.
*
* @hooked woocommerce_template_loop_category_link_open - 10
*/
do_action( 'woocommerce_before_subcategory', $category );
/**
* The woocommerce_before_subcategory_title hook.
*
* @hooked woocommerce_subcategory_thumbnail - 10
*/
do_action( 'woocommerce_before_subcategory_title', $category );
?>
<div class="card-body">
<?php
/**
* The woocommerce_shop_loop_subcategory_title hook.
*
* @hooked woocommerce_template_loop_category_title - 10
*/
do_action( 'woocommerce_shop_loop_subcategory_title', $category );
/**
* The woocommerce_after_subcategory_title hook.
*/
do_action( 'woocommerce_after_subcategory_title', $category );
/**
* The woocommerce_after_subcategory hook.
*
* @hooked woocommerce_template_loop_category_link_close - 10
*/
do_action( 'woocommerce_after_subcategory', $category );
?>
</div>
</div>
</div>
-
Copy file to main-theme's folder
bootscore-main/woocommerce/
-
Add following scss to your child
_bscore_custom.scss
(delete this in the 5.2.1.0 update)
.product-category img {
@extend .card-img-top;
}
h2.woocommerce-loop-category__title {
@extend .btn;
@extend .btn-primary;
@extend .w-100;
@extend .mb-0;
}
.product-category mark {
@extend .badge;
@extend .bg-white;
@extend .text-dark;
}
Does this help?
from bootscore.
from bootscore.
Related Issues (20)
- [BUG] Redundant (and sometimes problematic) IMG max-with in parent default style HOT 4
- Pagination loads sr-only span, which is deprecated in BS 5.3 HOT 2
- Update all occurrences of wp_localize_script to wp_add_inline_script HOT 3
- HTML5 compliance for pagination HOT 1
- Refactor the logo
- [BUG] Description Sidebar LEFT HOT 1
- Remove sidebar single-product
- [Feature Request] Quantity Swatches for sidebar cart (no reload) HOT 1
- Get wp_title() in header.php HOT 5
- Rewrite main.scss
- Matomo Wordpress-Plugin
- Woocommerce add to cart restrictions
- [Feature Request] Remove limitation wpsites_query HOT 3
- [BUG] Not able to scroll page using Divi page editor on Tab and Mobile view HOT 7
- Overwrite SCSS variables
- [BUG] Woocommerce Products Shortcode HOT 3
- Unable to style an active navbar item
- Unable to close a photo from the media gallery when enlarged or go back HOT 9
- Create assets folder HOT 4
- [BUG] Potential Woocommerce Bug in the Slide out Basket HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootscore.