Remove Debug Info

If you’re using a theme with Theme Blvd Framework 2.5+, you may notice we’re outputting some debugging info into the <head> of your website. This is super helpful for us, in dealing with theme support.

If for some reason, this is a problem for you, you can of course get rid of it from your child theme’s functions.php by unhooking it.

/**
 * Remove theme debug info from outputting in 
 * <head> of your website.
 */
function my_remove_debug() {
    if ( class_exists('Theme_Blvd_Frontend_Init') ) {
        $init = Theme_Blvd_Frontend_Init::get_instance();
        remove_action('wp_head', array($init, 'debug'));
    }
}
add_action('wp', 'my_remove_debug');