Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function siteorigin_north_remove_wc_breadcrumbs() {
- remove_action( 'woocommerce_single_product_summary', 'siteorigin_north_breadcrumbs', 6, 0 );
- remove_action( 'woocommerce_before_shop_loop', 'siteorigin_north_breadcrumbs', 6, 0 );
- }
- add_action( 'after_setup_theme', 'siteorigin_north_remove_wc_breadcrumbs' );
- function siteorigin_north_child_add_wc_breadcrumbs() {
- if ( class_exists( 'Woocommerce' ) && ( is_woocommerce() || is_cart() || is_checkout() ) ) {
- ?><div class="breadcrumbs">
- <?php bcn_display(); ?>
- </div><?php
- }
- }
- add_action( 'siteorigin_north_content_top', 'siteorigin_north_child_add_wc_breadcrumbs' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement