• Resolved Muad_Dib

    (@muad_dib)


    Hello,

    I am using the product_categories shortcode to display some products on my front page. The images that are loaded by the shortcode are 300x300px in size, but I want to display them at 600x600px. Of course they are pixelated because of the upscaling.

    In the srcset of the img element I also have the 640x640px images listed, but they are not loaded.

    How can I change the default image sizes loaded by the shortcode? Is there a hook or a filter I can call to change the behavior of the shortcode?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support fevered – a11n

    (@fevered)

    Hey there!

    Can you send what shortcode you are using exactly, with the params?

    Thread Starter Muad_Dib

    (@muad_dib)

    Hello,

    Thank you for the reply. I am using multiple instances of the [product_categories] shortcode. Here are some instances:

    [product_categories orderby="" order="ASC" columns="2" ids="62, 63"]
    [product_categories orderby="" order="ASC" columns="3" ids="68, 69, 70" number="8"]
    • This reply was modified 4 years, 4 months ago by Muad_Dib.
    Plugin Support fevered – a11n

    (@fevered)

    Thanks for that!

    You may be able to customize the shortcode, since there isn’t a param option for image size – there’s some documentation here that has some guidance on general customizations for shortcodes, though it doesn’t have your exact example: https://docs.woocommerce.com/document/woocommerce-shortcodes/

    Plugin Support fevered – a11n

    (@fevered)

    Hey there, since I haven’t heard back from you I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change image size of product categories shortcode’ is closed to new replies.