Swatch remove home - by Redgall - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 4 years, 2 months ago ago by Rose Tyler

  • Avatar: Redgall
    Redgall
    Participant
    September 6, 2020 at 10:56

    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.

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 6, 2020 at 12:08

    Hello,

    Provide URL and temporary wp-admin access, we will take a closer look.

    Regards

    Avatar: Redgall
    Redgall
    Participant
    September 6, 2020 at 12:11

    ok

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 6, 2020 at 12:50

    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

    Avatar: Redgall
    Redgall
    Participant
    September 6, 2020 at 17:39

    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

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.