Answer the question
In order to leave comments, you need to log in
Woocommerce how to customize product category design?
It is necessary to redo the design of the category on the wordpress + woocomerce website, namely:
when hovering, the product characteristics (length, width, height) or a short description + the "add to cart" button and a quick view, as it is done on sofa.ru, should appear
a href="https://www.divan.ru/category/modulnye-gostinye"
http://prntscr.com/mtkmyc
Answer the question
In order to leave comments, you need to log in
1) Quick view can be implemented using a plugin, for example YITH WooCommerce Quick View, and then style its button (Quick view) as needed:
2) Product characteristics (attributes, etc.) can be displayed through functions.php
For example
function my_template_loop_product_title(){
global $product;
echo '<h3 itemprop="name" class="product_title entry-title">';
$versionvalues = get_the_terms( $product->id, 'pa_model');
foreach ( $versionvalues as $versionvalue ) {
echo $versionvalue->name;
}
echo '</h3>';
}
add_action( 'woocommerce_shop_loop_item_title', 'my_template_loop_product_title', 10 );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question