/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.18.7
Requires at least:    5.9
Requires PHP:         5.6
WC requires at least: 4.7
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

function breadcrumb_custom() {
    if ( !is_front_page() && is_page() || is_category()||is_singular('post') ) { ?>
    <div class=""breadcrumb-wrap"">
        <div class=""page-title-inner flex-row medium-flex-wrap container"">
            <div class=""flex-col flex-grow medium-text-center"">
                <?php echo do_shortcode('[rank_math_breadcrumb]'); ?>
            </div>
        </div>
    </div>
<?php }
}
add_action('flatsome_after_header','breadcrumb_custom');

function wpcb_redirect_404() {
global $wp_query;
if ( $wp_query->is_404 ) {
wp_redirect( get_bloginfo('wpurl'), 301 );
exit;
}
}
add_action('template_redirect', 'wpcb_redirect_404', 1);
