php - Unable to show 4 products in row in subcategory/shop page woocommerce -
i'm unable show 4 products in row, put filter in themes/functions.php
.
code below:
function loop_columns(){ return 4; } add_filter('loop_shop_columns', 'loop_columns',999);
when return 3, working fine, when put 4 here, shows grid this:
product | ______________________________________ product | product | product | product ______________________________________ product | product | product | product ______________________________________ product | product | product | product
note: why product
display on top? please me. live link of issue http://csjs.com/product-category/bhai-guriqbal-singh-ji-books/
more detail : 4 products in row, after adding filter 4 columns in functions.php, problem occur. if go direct shop page fine, if open category wise products not showing well, because show sub-categories of parent on shop page.
note: if reduce width upper 3 columns, single product in row shift on above row. requirement is, 1 row show sub categories , grid show products.
all grid items part of same ul element, class products.
Comments
Post a Comment