Okay
  Public Ticket #3808368
Zoom feature on products
Closed

Comments

  • kellylevac started the conversation

    Hi, 

    I am trying to remove the lightbox and hover zoom completely from my product pages but it does not work. 

    I checked different forums and answers you provided to people with the same issue. The CSS code does not work in my case and the only code that works is for the lightbox in the child theme (functions.php file): 

     function remove_image_zoom_support() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_action( 'wp', 'remove_image_zoom_support', 100 );

    Is there any way to remove both the hover zoom and the lightbox? 

  •  9,059
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .easyzoom-flyout {
        display: none !important;
    }
    

    Thanks


    ThemeNectar Support Team 

  • kellylevac replied

    Hi Tahir! 

    It worked :) But now I see the name of the images when I hover on them and when I enlarge them. Is it something we can remove?

    Thanks!

  •  1,986
    Judith replied

    Hello Kelly,

    Thanks for writing back.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    .pswp__caption__center {
        display: none;
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 

     

  • kellylevac replied

    Hi Judith! 

    Unfortunately, even after I added the CSS snippet, the image captions are still visible. 

  •  9,059
    Tahir replied

    Hey Again,

    The only way to remove those is to clear the title fields in the Image Library for those particular images. 

    Best,

     


    ThemeNectar Support Team 

  • kellylevac replied

    Got it, it works! Thank you :)