Home Forums Themes Support Pangja Display of products on woocommerce by default in the list and not in the grid

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8425
    MattinaGroup
    Supported

    Hello,
    I need to set the display of products on woocommerce by default in the list and not in the grid. How can I do?
    I thank you in advance

    #8426

    Hi,
    Thanks for contacting us and choosing our product!
    Now we don’t have option to do this.
    However you can do it by go to: wp-content/themes/pangja/woocommerce/loop/ then open file loop-start.php
    Go to line 32 (last line) and change the code to:
    <ul class="products list <?php echo esc_attr($product_classes); ?> clearfix" >
    and go to: wp-content/themes/pangja/assets/js then open file haru-shop.js
    Go to line 200 of the function changeArchiveLayout() and change the code to:
    // Set default layout

    if ($.cookie( 'gridcookie' ) == null) {
        $( 'ul.products' ).addClass( 'list' );
        $( '.gridlist-toggle #list' ).addClass( 'active' );
    }

    Maybe you need to do only Step 2 in haru-shop.js file
    Hope this helps!

    ****
    Regards,
    HaruTheme

    #8452
    MattinaGroup
    Supported

    Thanks so much

    #8462

    Thanks for your feedback!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.