Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created October 10, 2018 16:09
Show Gist options
  • Save farookibrahim/a5c62c09a4132bf2fdd49dca2467f249 to your computer and use it in GitHub Desktop.
Save farookibrahim/a5c62c09a4132bf2fdd49dca2467f249 to your computer and use it in GitHub Desktop.
Electro Remove Categories in Loop and Single
function el_child_remove_product_category_info() {
remove_action( 'woocommerce_single_product_summary', 'electro_template_loop_categories', 1 );
remove_action( 'woocommerce_before_shop_loop_item_title', 'electro_template_loop_categories', 20 );
remove_action( 'woocommerce_shop_loop_item_title', 'electro_template_loop_categories', 50 );
remove_action( 'electro_product_carousel_alt_content', 'electro_template_loop_categories', 30 );
remove_action( 'electro_product_card_view_body', 'electro_template_loop_categories', 10 );
}
add_action( 'init', 'el_child_remove_product_category_info', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment