This topic has 6 replies, 2 voices, and was last updated 4 years, 2 months ago ago by Rose Tyler
Hi,
I need to remove the variations on the home page only https://prnt.sc/ucetmc How should I do?
I do not want to act through css because they are images and would be loaded the same weighing the whole page.
Hello,
Provide URL and temporary wp-admin access, we will take a closer look.
Regards
ok
There is no such option, right now, unfortunately. You can submit the request about adding new option for the Products element here – https://www.8theme.com/taskboard/ Our team will discuss it and maybe implement it in one of the next theme updates.
Regards
This is absurd. At least let them know if the problem depends on theme + Elementor? I have another site that doesn’t use Elementor and doesn’t have this problem.
At least say which php file is affected
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
You must be logged in to reply to this topic.Log in/Sign up