'eee', 'default-image' => get_template_directory_uri() . '/images/bonyo-bg.png', ); add_theme_support('custom-background', $bg_default); //replace style meta tag -------------- function bny_css_async($tag) { if (!strpos($tag, 'fontawesome-style') === false) { $awesome = get_template_directory_uri() . '/fonts/font-awesome-4.7.0/css/font-awesome.min.css'; $tag = str_replace('media=\'all\' />', 'media="none" onload="if(media!=\'all\')media=\'all\'">', $tag); } return $tag; } add_filter('style_loader_tag', 'bny_css_async'); //noindex function bny_wp_head_noindex() { $noidx = '' . "\n"; if (!is_singular() && !is_front_page() && !is_home()) { echo $noidx; } } add_action('wp_head', 'bny_wp_head_noindex'); //Nav Menu custom class --------------- class bny_nav_walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $output .= '
'; } } //Sidebar Widget ------------- if (!function_exists('bonyo_widgets_init')): function bonyo_widgets_init() { register_sidebar(array( 'name' => esc_html__('Regular Sidebar', 'bonyo'), 'id' => 'sidebar-1', 'description' => esc_html__('Sidebar for regular pages.', 'bonyo'), 'before_widget' => '', 'before_title' => '