Product Page Image - by Stinsonleathers - on WordPress WooCommerce support

This topic has 5 replies, 3 voices, and was last updated 8 years, 2 months ago ago by Jack Richardson

  • Avatar: Stinsonleathers
    Stinsonleathers
    Participant
    January 20, 2016 at 14:00

    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
    January 20, 2016 at 15:55

    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
    January 21, 2016 at 01:30

    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
    January 21, 2016 at 14:59

    450×700 will be great
    thank you

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 22, 2016 at 14:07

    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.

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.