"; yoast_breadcrumb(); echo "
"; } else if (function_exists('bcn_display') && 'bcn' == $breadcrumb_options) { echo ""; } else if (class_exists('WooCommerce') && 'woocommerce' == $breadcrumb_options) { echo ""; } } } endif; if (!function_exists('cosmoswp_breadcrumb_structure')): /** * Add in action hook breadcrumb hook * @return void */ function cosmoswp_breadcrumb_structure() { $breadcrumb_options = cosmoswp_get_theme_options('cosmoswp-breadcrumb-options'); if ('disable' != $breadcrumb_options) { if (!is_front_page()) { if (function_exists('yoast_breadcrumb') && 'yoast' == $breadcrumb_options) { echo ""; } else if (function_exists('bcn_display') && 'bcn' == $breadcrumb_options) { echo ""; } else if (class_exists('WooCommerce') && 'woocommerce' == $breadcrumb_options) { echo ""; } } } } add_action('cosmoswp_action_breadcrumb', 'cosmoswp_breadcrumb_structure'); endif; if (!function_exists('cosmoswp_before_content_breadcrumb_structure')): /** * Compatible with Gutentor * Add in action hook breadcrumb hook * @return void */ function cosmoswp_before_content_breadcrumb_structure() { $breadcrumb_options = cosmoswp_get_theme_options('cosmoswp-breadcrumb-options'); $before_content = cosmoswp_get_theme_options('breadcrumb-before-content'); if ('disable' != $breadcrumb_options && $before_content) { echo '
'; if (!is_front_page()) { if (function_exists('yoast_breadcrumb') && 'yoast' == $breadcrumb_options) { echo ""; } else if (function_exists('bcn_display') && 'bcn' == $breadcrumb_options) { echo ""; } else if (class_exists('WooCommerce') && 'woocommerce' == $breadcrumb_options) { echo ""; } } echo '
'; } } add_action('gutentor_template_before_loop', 'cosmoswp_before_content_breadcrumb_structure'); endif;