• Hello,

    The idea is simple, on the web I want to show each category with the full width (max 1920px), but the catalogs with 3 columns of products (max 510px). The problem I have is that I cannot select a different size for the thumbnails of the products and that of the categories, so either the category image is pixelated if I choose 510px or the product image is excessively large and increases a lot the loading time of the web.

    Basic structure:

    Cat1
    _________________
    Cat2
    _________________
    Cat3
    _________________

    Prod1 Prod2 Prod3
    Prod4 Prod5 Prod6

    Is there a way to increase the size of the category image without increasing the product image?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter cantbutron

    (@cantbutron)

    self answer my question

    By adding this code to the functions.php file the category images are displayed in full size and the products are kept as thumbnails.

    add_filter( 'subcategory_archive_thumbnail_size', function( $size ) {
    return 'full';
    } );

    Could you confirm if this is correct?

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘change image size of categories’ is closed to new replies.