%name WooCommerce   Mostrar un producto por fila

Your online store with WooCommerce

WooCommerce WordPress is the module that integrates into your online store. I have little time using it and I'm finding with little difficulty that I will soon be resolved. One is to show a product for each row in the list of products. By default, WooCommerce shows 4 products per row, but the template that I am using is not very good. So I was interested this time to change that and make it instead of displaying 4 per row, to show one.

To do this, simply edit the file functions.php your template and add the following code at the very end:

add_filter('loop_shop_columns', 'loop_columns');

if (!function_exists('loop_columns')) {
    function loop_columns() {
        return 1; // 1 producto por fila



Use of cookies

This site uses cookies for you to have the best user experience. If you continue to browse you are giving your consent to the acceptance of the above cookies and acceptance of our cookies policy, Click the link for more information.

Notice of cookies

Pin it on Pinterest

Share This


Share this with your friends!