WooCommerce: After updating to 3.0 Product Lightbox is Not Working

Troubleshooting  Since: 1.6.6 Last Updated: Time to Read: Less than a minute

WooCommerce removed their former lightbox in 3.0 and added new functionality that must be enabled in your theme specifically. If you use StoreKit, please update it to the latest version to restore the lightbox function.

  1. Ensure you have the latest Layers version
  2. Update StoreKit
  3. If you do not use StoreKit, update functions:

Note, the below fix is intended for custom child themes or as a temporary solution for users of Layers 1.6.6. Do not implement this code in commercial child themes.

  1. Go to Appearance > Editor
  2. Click Theme Functions on the right
  3. Scroll to the bottom and place your cursor at the very end of the existing content and hit enter once to add a new blank line. No brackets or content should be below or after your cursor.
    • This is extremely important!
  4. Copy and paste the following:

5. Click Update File

6. The lightbox icon should now appear on your product post once refreshed.