Home Forums WoodMart support forum Change product gallery main image size

Change product gallery main image size

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #719832

    pikslmarketing
    Participant

    Hello,

    how can I set a different image size for main product image / gallery?
    I want to display a cropped image, set to a square ratio, 1000x1000px – so it should load a predefined thumbnail size. I know how to register a new thumbnail size and regenerate, but not how to set it in the product template.

    Many thanks.

    #719842

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    Thanks for reaching out.

    In WoodMart (and WooCommerce in general), single product images are controlled via Appearance > Customize > WooCommerce > Product Images:
    – Main image width controls the single product main image, and it remains uncropped.
    – Thumbnail width and the 1:1 option control cropping for thumbnails (catalog and gallery thumbs).

    If you want a square 1000×1000 main image on the product page, there isn’t a built‑in setting to assign a custom registered size to the main gallery image. You can:
    – Set Main image width to 1000 (this won’t crop; it just sets width), and
    – Set Thumbnail width to 1000 with 1:1 cropping for square thumbnails,
    then regenerate thumbnails.

    To force the main product image itself to use a square‑cropped size (e.g., your custom 1000×1000), this requires a code customization in a child theme using WooCommerce hooks/templates, which is outside our standard theme support scope. If you proceed with custom code, add it in a child theme (or a code snippets plugin) and regenerate thumbnails after changes.

    Let us know if you need any clarification on the Customizer steps.

    Kind regards,
    XTemos Studio

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