• I have 2 question here (and appreciate if anyone can help):

    1). The main product image width (container) in single product page appears to be smaller than the width of the gallery under it.
    If you look at this picture

    you will see the width of main picture is smaller than the width of gallery under it and the magnifying glass is partially outside of it.

    But when I move the mouse pointer on the image it will zoom on the picture and the width of the main picture become the same size as the width of the gallery under it, see it in this picture

    How can I fix this so the width of the main picture will always be the same size as the width of gallery?

    2). I am also trying to remove zoom on hover and the lightbox from woocommerce single product page.

    I tried using code below in my theme’s functions.php file:

    function ijab_disable_wc_lightbox_zoom() {
        remove_theme_support( 'wc-product-gallery-lightbox' );
        remove_theme_support( 'wc-product-gallery-zoom' );
    }
    add_action( 'after_setup_theme', 'ijab_disable_wc_lightbox_zoom', 20 );
    

    It disables zoom on hover and lightbox, but now when I click on the image, the full size picture will open in a new tab.

    by the way I am using Storefront theme.

    Any help would be appreciated

    • This topic was modified 4 years, 5 months ago by babakras. Reason: add theme name
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    For question 1 – have you regenerated the thumbnail images? I’m asking as it looks like the single product image is using a dimension that’s smaller than the container width (which is typically a result of using the image dimensions of a previous theme).

    If you’re still getting stuck, please share a direct link to the product in question as well as a copy of your status report as found under **WooCommerce > Status**.

    Thanks!

    Thread Starter babakras

    (@babakras)

    Hello @riaanknoetze
    Thank you for reply. what do you mean by ‘regenerated the thumbnail images’ ?
    The actual image size are 8495px?×?5663px but when I upload them into wordpress, wordpress scaled them down to 2560px × 1707px automatically.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘single product image’ is closed to new replies.