Product Page Image - by Stinsonleathers - on WordPress WooCommerce support

4 replies3 participantsUpdated by Jack Richardson

  • Avatar: Stinsonleathers
    Stinsonleathers
    Participant

    Hello,

    How can i Change the picture size of the single product page,
    The image is really large in the single product page,
    Can you give us custom code that reduces the size of image in single product page,

    Please, contact administrator
    for this information.

    4 Answers

    Avatar: stan
    Stan Russell
    Participant

    Hello Stinsonleathers,

    please provide us with FTP credentials for your site in private content and specify what Product image dimensions do you want to have. We will edit it and provide you with code.

    Regards,
    Stan Russell.

    Avatar: Stinsonleathers
    Stinsonleathers
    Participant

    Yeah Sure,

    and Product image should be about 30% less as it is shown in the single product page

    Please, contact administrator
    for this information.
    Avatar: Stinsonleathers
    Stinsonleathers
    Participant

    450×700 will be great
    thank you

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    I’ve created child theme for you and placed there the wp-content/themes/legenda-child/woocommerce/single-product/product-image.php file with needed changes in lines 46 and 47:

    $mainImageWidth = 450;
    $mainImageHeight = 700;

    and after regenerated thumbnails.
    Also the css code has been added in wp-content/themes/legenda-child/style.css:

    @media (min-width: 1200px){
       .main-image-slider.zoom-enabled, .sxy-zoom-container.sxy-zoom-mode-window {
          width: 450px !important;
          height: 700px !important;
       }
    }

    Please check the site now.

    Best regards,
    Jack Richardson.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register