Several Issues - by JennieLyne - on WordPress WooCommerce support

This topic has 7 replies, 2 voices, and was last updated 5 years, 2 months ago ago by JennieLyne

  • Avatar: JennieLyne
    JennieLyne
    Participant
    September 20, 2020 at 19:02

    I recently posted for help with the lightbox after adding code to remove the featured image from the single product page. The topic was closed before I had a chance to reply.
    This is the original post:
    I wanted to remove the featured image from showing up on the single product page.
    I managed this by adding the code:

    remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20 );
    add_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_thumbnails’, 20 );

    to the functions.php file in the child theme.

    Now, I have an issue when clicking the gallery image. I’m not sure if this is called the lightbox or something different. The image is bigger which is not a big deal. The exit “X” is gone when clicking which makes it difficult to return to the product page. I have to use the back button on my browser. (Also, my favicon does not show up on this page.)
    I tried to disable the click using this code:

    remove_theme_support( ‘wc-product-gallery-lightbox’ );

    It did not disable the click.
    I need to fix this one way or the other. Either by disabling the ability to click the image or by removing the feature image without it removing the exit button from the clicked image.
    I did try to build the page with the product builder. Not only did disabling the lightbox feature not work, but it disabled the code to remove the featured image from the page. Any suggestions?

    Today, I’ve ran into more problems. I wanted to try the dark theme but it did not work. Neither does changing the background color.

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    September 21, 2020 at 15:07

    Hello,

    Check the link that you provided because site is not available http://prntscr.com/ul65lm and we can’t check the issue.
    Contact your hosting provider to get FTP access.

    Regards

    Avatar: JennieLyne
    JennieLyne
    Participant
    September 21, 2020 at 18:44

    Sent new url. should work.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    September 22, 2020 at 14:37

    Hello,

    S was the problem http://prntscr.com/ulrvhs
    Check the product image now, please.
    Also, could you describe in more detail and provide screenshot of the problem with the toggle and link to page where you use it?

    Regards

    Avatar: JennieLyne
    JennieLyne
    Participant
    September 22, 2020 at 15:37

    This is the problem.
    I wanted only gallery images to show on single product pages. I added code to remove the featured image from single product page. https://prnt.sc/ulv8im

    This is the code added to functions.php in the child theme.

    remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20 );
    add_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_thumbnails’, 20 );

    Now I’m having issues with the lightbox. When I click on the image, I am stuck. You can no longer get out of the page by clicking exit or anywhere on the page like before. I have to use click back on my browser to get out of it. Even ESC doesn’t work.

    I need to fix it so you can exit as before or disable the click. I’ve tried code to disable the lightbox. It does not work. I also tried the product builder and the toggle to turn off the lightbox doesn’t work there either.

    The dark theme toggle doesn’t work in customize on any page. I can’t change the theme background with the color picker either. https://prnt.sc/ulvayo

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    September 22, 2020 at 19:09

    Hello,

    1) Gallery image is displayed, not?
    2) Once I removed the bg image and changed the color of the site bg it works http://prntscr.com/ulzjm9

    Regards

    Avatar: JennieLyne
    JennieLyne
    Participant
    September 23, 2020 at 15:56

    Thank you. Everything is great now. 😀

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

The issue related to '‘Several Issues’' has been successfully resolved, and the topic is now closed for further responses

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