'; if ( $logo!="") { $html .= ''; } $html .= '

' .get_bloginfo('name').'

'.get_bloginfo('description').'
'; echo $html; } add_action('avata_main__header','avata_main_header'); /** * Main header template */ function avata_featured_header(){ global $avata_header; $custom_logo_id = get_theme_mod('custom_logo'); $image = wp_get_attachment_image_src($custom_logo_id , 'full'); $logo = $image[0]; $sticky_header = esc_attr( avata_option( 'sticky_header_frontpage')); $header_class = 'main-header homepage-header'; $theme_location = 'primary'; if (has_nav_menu('home')){ $theme_location = 'home'; } if($sticky_header=='1'){ $header_class .= ' fixed'; } $html = '
'; if ( $logo!="") { $html .= ''; } $html .= '

' .get_bloginfo('name').'

'.get_bloginfo('description').'
'; echo $html; } add_action('avata_featured__header','avata_featured_header'); /** * Display frontpage sections option in customizer */ function avata_hide_sections(){ global $avata_lite_sections; if ( is_customize_preview() ) { echo '
'; foreach( $avata_lite_sections as $k => $v ){ dynamic_sidebar($k); } echo '
'; } } add_action('avata_after__footer','avata_hide_sections');