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?