'; $title_tag = get_theme_mod('breadcrumb_title_tag', 'h1'); $title_tag = !$title_tag ? 'h1' : $title_tag; $product_name_single = !get_option( 'etheme_single_product_builder', false ) && get_theme_mod('product_name_signle', 0); $product_name_single = apply_filters('product_name_single', $product_name_single); $breadcrumb_stretch = 'default'; $breadcrumb_stretch = apply_filters('woocommerce_breadcrumb_stretch', $breadcrumb_stretch); $return_to_previous = get_theme_mod('return_to_previous', 1); $return_to_previous = apply_filters('return_to_previous', $return_to_previous); $breadcrumb_params = apply_filters('breadcrumb_params', array( 'type' => get_query_var('et_breadcrumbs-type', 'left2'), 'effect' => get_query_var('et_breadcrumbs-effect', 'mouse'), 'color' => get_query_var('et_breadcrumbs-color', 'dark') )); $class = array(); $class[] = 'bc-type-'.$breadcrumb_params['type']; $class[] = 'bc-effect-'.$breadcrumb_params['effect']; $class[] = 'bc-color-'.$breadcrumb_params['color']; $bread_bg = ''; $is_category = is_category() || is_tax('product_cat'); $is_tag = is_tag() || is_tax('product_tag'); if( $is_category || $is_tag) { $title_tag = get_theme_mod('breadcrumb_category_title_tag', 'h1'); $title_tag = !$title_tag ? 'h1' : $title_tag; } if( $is_category || $is_tag ) { $term_id = get_queried_object()->term_id; if( $term_id && $image = get_term_meta( $term_id, '_et_page_heading', true ) ) { $bread_bg = $image; } } $is_taxonomy = is_product_taxonomy(); if (get_query_var('et_breadcrumbs', false) || apply_filters('etheme_elementor_theme_builder', false) ): ?>
>
$crumb ) : ?> = $key + 1 && $is_taxonomy ) { $term = get_queried_object_id(); $shop_id = wc_get_page_id( 'shop' ); $_name = $shop_id ? get_the_title( $shop_id ) : ''; if ( ! $_name ) { $product_post_type = get_post_type_object( 'product' ); $_name = $product_post_type->labels->name; } if ( $shop_id > 0 ) : ?> ' . esc_html( $crumb[0] ) . ''; ?> 1) ) : ?> '.esc_html( $crumb[0] ).''; ?> ' . get_the_title() . ''; elseif( ! is_single()): echo '<'.$title_tag.' class="title">'; if ( !empty($crumb[0])) { echo esc_html($crumb[0]); } else { woocommerce_page_title(); } echo ''; endif; ?>