Okay
  Public Ticket #850186
Product categories image dimensions
Closed

Comments

  • Dimitris started the conversation

    Hello. I’m trying to make the product categories images to be not square just like your demo but i can’t. I’m trying to change the dimensions via your theme options and after i regenerate thumbnails but nothing happens. Any suggestions?

    Thanks

  •  1,558
    Laborator replied

    Hi Dimitris,

    Can you please send us your site URL first, so we can investigate your site and then get back to you with possible solution.

    P.S. make sure you've disabled the Maintenance/Coming Soon mode

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   Dimitris replied privately
  •  1,558
    Laborator replied

    Hi again,

    Which product  categories do you want to change and how do you want them to be, circled?

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dimitris replied

    Hi.

    in this page: http://tanagrea.gr/categories/ you can see the example of product categories. I just dont want to be square. I prefer your themes style. Example dimensions: 500X190 as is it in your theme's settings under cataloge page in Category Image Size 

    thanks

  •  1,558
    Laborator replied

    Hi Dimitris,

    The category image size is not set, the category images are uploaded as landscape images and not squared and then they automatically fit the screen. To change these images go to Products > Categories and for each category set an image.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dimitris replied

    Hello.

    I know that category images are landscape and that's i want to display in frontend. Not square but landscape just like your demo.

  •  1,558
    Laborator replied

    Hi again,

    And what I am saying is that there is no option to change the category image size, they are uploaded as landscape and they automatically show in the homepage like this.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dimitris replied

    I'm sorry i don't understand. As you can see in the print screen the category image dimensions are 500pxX190px. The image (accessories1.png) are in this dimensions. Why i'm still see the images squared?

    Sorry about my english and thank you for your patience

  •  1,558
    Laborator replied

    Hi Dimitris,

    Can you please send us your FTP credentials as we need to check it further.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   Dimitris replied privately
  •  1,558
    Laborator replied

    Hi Dimitris,

    I managed to fix this by adding this code to your functions.php file:

    add_filter( 'subcategory_archive_thumbnail_size', laborator_immediate_return_fn( 'original' ) );

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dimitris replied

    You are very kind.

    Thank you for your help.


  •  1,558
    Laborator replied

    You're welcome Dimitris :)

    If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).

    A huge thank you from Laborator in advance!

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dimitris replied

    My mistake!

    I gave 5 stars of course.

    Once again thanks

  • Dimitris replied

    Hello again.

    Is it possible to add this code you gave me to the child theme's function.php file?

    add_filter( 'subcategory_archive_thumbnail_size', laborator_immediate_return_fn( 'original' ) )

    because i don't want to loose this filter everytime the theme is update.

    I tried to add as it is to child theme's function.php file but when i upload it all i get is a blank page.

    Thanks

  • [deleted] replied

    Hi Dimitris,

    Yes, adding the code in child theme will solve the that issue. If that is not working for you here is another alternative.

    Add the following code in kalium-child/functions.php (end of file):

    add_filter( 'subcategory_archive_thumbnail_size', create_function( '$size', 'return "original";' ) );

    This should work for you.

  • Dimitris replied

    Hello.

    This worked like a charm. Thank you so much for your help.

    Have a nice day:-)

  • [deleted] replied

    Great to hear that!

    Have a great day too!