get_queried_object();
$thumbnail_id = get_term_meta( $cat->term_id, 'thumbnail_id', true );
$image = wp_get_attachment_url( $thumbnail_id );
return $image;
} else {
return NULL;
}
}
}
if ( !function_exists( 'azuma_header_title_product' ) ) {
function azuma_header_title_product() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5);
if ( get_theme_mod( 'header_img_product' ) === 'main' ) {
$bg_image_url = get_header_image();
} else {
if ( has_post_thumbnail() ) {
$bg_image_url = esc_url( get_the_post_thumbnail_url( get_the_ID(), 'full' ) );
} else {
$bg_image_url = get_header_image();
}
}
?>