Layout subcategories and products - by Divites

This topic has 6 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler

  • Avatar: Divites
    Divites
    Participant
    March 31, 2018 at 17:27

    Hi,

    I was wondering if you could me out with the following.
    I have set the product page to show the subcategories and the products.
    However what I would like to achieve is the products should start to show in another row and not in the same row as the subcategories. Furthermore if possible I would like the number of columns of the subcategories to be 5 or 6 and the products 4.

    Could you please help me to achieve this.

    Thx so much for your prompt reply.

    Regards,

    Johan

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 2, 2018 at 08:09

    Hello,

    This requests additional customization.
    http://prntscr.com/izl4mw
    woocommerce_maybe_show_product_subcategories('')
    in xstore-child/woocommerce/archive-product.php
    + add this code in functions.php file of child theme:
    remove_filter( 'woocommerce_product_loop_start', 'woocommerce_maybe_show_product_subcategories' );

    Unfortunately, there is no possibility to set different number per page for products and categories.

    Regards

    Avatar: Divites
    Divites
    Participant
    April 2, 2018 at 10:08

    Hi Rose,

    Thx for your prompt and excellent support.
    I have added the code and it works quite well.

    There is only one more thing if possible. As you can see the first row of products under the subcategories contains 3 products instead of the set number of 4 and the last row contains 1 product. Please see http://rando.divi-test.nl/product-categorie/afzuiginstallaties/
    Is it possible to have 4 products in the first row of products as well?

    I really appreciate your help.

    Regards,

    Johan

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 2, 2018 at 12:08

    Hello,

    Please make sure that you didn’t forget – http://prntscr.com/izoe85
    or provide temporary wp-admin and FTP access in the Private Content area.

    Regards

    Avatar: Divites
    Divites
    Participant
    April 2, 2018 at 14:30

    Hi,

    Thx so much!

    Regards,

    Johan

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 2, 2018 at 14:37

    Hello,

    You’re welcome!

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.