Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1157848

    Hi.

    When I open one of my product images it opens as a sigle image with black air around. I can not flip though images or view as ligthbox. I tried adding this code to function.php, but nothing happens.

    Here is code in php.

    `add_theme_support( ‘wc-product-gallery-lightbox’ );
    add_theme_support( 'wc-product-gallery-slider' );

    • This topic was modified 5 years, 1 month ago by snitt.
    #1158752

    Hey snitt,

    Thank you for the inquiry.

    There is a modified version of header.php file in the child theme and it probably contains the old scripts. Please get a fresh copy of the header.php template from the latest version of the parent theme and replace the old one. This should fix the lightbox issue.

    Best regards,
    Ismael

    #1158801

    Hi, Ismael.

    I have now replaced header with header from Enfold, but still no ligthbox.

    #1159048

    Hi,

    Thank you for the update.

    We removed the following snippets from the functions.php file. The product gallery works properly now — the images opens inside the lightbox container.

    add_theme_support( 'wc-product-gallery-zoom' );
    add_theme_support( 'wc-product-gallery-lightbox' );
    add_theme_support( 'wc-product-gallery-slider' );
    

    If you want to use the plugin’s default gallery, please go to the Enfold > Shop options panel and set the Product gallery settings accordingly.

    Best regards,
    Ismael

    #1159050

    Thank you so much for your help :)

    #1159073

    Hi snitt,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Lightbox not working after update’ is closed to new replies.