Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 15, 2018 06:18
Show Gist options
  • Save yousufansa/22b870d8e60859cb6da6e97ed4cbf536 to your computer and use it in GitHub Desktop.
Save yousufansa/22b870d8e60859cb6da6e97ed4cbf536 to your computer and use it in GitHub Desktop.
Tokoo - Remove Header Cart Icon
add_action( 'init', 'tokoo_child_init_custom_functions' );
if( !function_exists('tokoo_child_init_custom_functions') ) {
function tokoo_child_init_custom_functions() {
remove_action( 'tokoo_header_icons', 'tokoo_header_cart' );
}
}
@yousufansa
Copy link
Author

To Remove Header Cart In Mobile:

add_filter( 'tokoo_handheld_header_links', 'tokoo_child_handheld_header_remove_cart' );

if( !function_exists('tokoo_child_handheld_header_remove_cart') ) {
    function tokoo_child_handheld_header_remove_cart ( $links ) {
        unset($links['cart']);

        return $links;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment