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):
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):
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.
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?
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):
Thanks
ThemeNectar Support Team
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!
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:
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.
Hi Judith!
Unfortunately, even after I added the CSS snippet, the image captions are still visible.
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
Got it, it works! Thank you :)