Revert support for Single Product's legacy Gallery layouts

Revert support for Single Product’s legacy Gallery layouts

We have listed down a filter that will help you Structure the WooCommerce Single Product’s legacy Gallery layouts.

This is a premium feature available with the Astra Pro Addon plugin. To use these Pro features, you need to have the Astra theme along with the Astra Pro Addon installed on your website.

Prior to the Astra Pro v3.9.2, you can see 5 Gallery layout options for WooCommerce Single Product. Have a glance at the below-attached screenshot once for a better understanding.

On a fresh new installation, with Astra Pro v3.9.2, the first two Gallery Layout are missing.

This is because we have deprecated legacy layouts. To get the Single Product’s legacy Gallery layouts back, you can make use of the below-attached filter. On adding the following filter in the functions.php file, you can see the 5 Gallery layout options.

add_filter( 'astra_get_option_astra-product-gallery-layout-flag', '__return_false' );

Note:

For additional details on how to add a custom code to the functions.php file please see this article: How to Add Custom PHP Code?

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page

Take the First Step Toward Success Now.

You’re backed by an amazing team and a risk-free money-back guarantee!

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

This field is required.

REWIND

YEAR IN REVIEW

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form