• Resolved Deepak

    (@deepakdcc)


    hi , i trried to hide swiftcontrol on specific woocommerce pages, like shop, cart, checkout and my accounts and few more . i used the followed function in mt themes function

    function prefix_hide_sc_panel( $display ) {
    
        if ( is_archive() ) {
            return false;
        }
    
        return $display;
    
    }
    add_filter( 'swift_control_frontend_display', 'prefix_hide_sc_panel' );

    when added this it hides the widget on shop page, but i cannot add more pages here , i tried adding ” if ( is_archive(shop, cart, checkout, myaccount) ) { ”
    but it returned critical error . please help me in how to hide these pages correctly.i mean how to imply this code properly in functions file

    thank you

    The page I need help with: [log in to see the link]

  • The topic ‘hide on pages makes critical error’ is closed to new replies.