Reply 250759 to: swatch remove home

Avatar: Rose Tyler
Rose Tyler
Support staff
September 8, 2020 at 09:00

Hello,

It is not a bug/problem, there is no option to disabled the variations for Products element with the Elementor page editor, so I’ve asked you to send a request for adding it.
Here is a reply from our technician team – Changes should be done in files of core plugin, if you do them there, you will face problems with every official update.
Try to add the next code in functions.php of your child theme:

if	(is_front_page()){
	remove_action( 'loop_swatch', array( 'St_Woo_Shop', 'loop_swatch' ) );
	remove_filter( 'sten_wc_archive_loop_available_variations', array( 'St_Woo_Shop', 'available_variations' ) );
	remove_filter( 'sten_wc_archive_loop_swatch_html', array( 'St_Woo_Shop', 'swatch_html' ), 10, 6 );
}

If this doesn’t give you the desired result, submit the request via https://www.8theme.com/taskboard/, and follow our changelog.

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.