|
/ Documentation /Custom Code Snippets/ How to remove horizontal & vertical gallery layouts from a single product page?

How to remove horizontal & vertical gallery layouts from a single product page?

In the Astra Pro update v3.9.0, we have released 2 new gallery layout options for a single product, i.e. Horizontal & vertical gallery. But as these are custom gallery Astra layouts, You have faced an issue when gallery layouts are not working or look improper with theme builder single product layouts.

If you previously prepared any “Single Product” layout (v3.9.0), you could face the gallery layouts missed on the front-end single product page. Keeping in mind the popular page builder themer layouts, we fixed this issue in our last v3.9.2 update. But if you still come across the situation where this gallery layout is not required on your single product layout on the front end, you can use the newly added filter.

So here is the filter to disable those custom galleries and let the layout/custom layout work as per their way.

add_filter( 'astra_addon_override_single_product_layout', '__return_false' );
Was this doc helpful?
What went wrong?

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

Need help? Contact Support
On this page
Scroll to Top