__('Header Menu', 'aemi'), 'overlay-menu' => __('Overlay Menu', 'aemi'), 'social-menu' => __('Social Menu', 'aemi'), 'footer-menu' => __('Footer Menu', 'aemi'), ] ); add_theme_support( 'html5' ); add_theme_support( 'align-wide' ); add_theme_support( 'site-logo' ); // add_theme_support( 'wp-block-styles' ); add_theme_support( 'custom-line-height' ); add_theme_support( 'custom-units' ); //add_theme_support( 'custom-units', 'rem', 'em' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'experimental-link-color' ); add_theme_support( 'experimental-custom-spacing' ); add_theme_support( 'editor-styles' ); // add_theme_support( 'dark-editor-style' ); add_editor_style([ 'assets/editor-style.css' ]); // add_theme_support( 'disable-custom-font-sizes' ); // add_theme_support( 'disable-custom-colors' ); // add_theme_support( 'disable-custom-gradients' ); // remove_theme_support( 'core-block-patterns' ); add_theme_support( 'custom-background', [ 'default-color' => '', ] ); add_theme_support('custom-header', [ 'default-image' => '', 'width' => 2880, 'height' => 172, 'flex-height' => true, 'flex-width' => true, 'uploads' => true, 'random-default' => false, 'header-text' => false, 'default-text-color' => '', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ]); add_theme_support('custom-logo', [ 'height' => 92, 'width' => 276, 'flex-height' => true, 'flex-width' => true, 'header-text' => [], ]); $starter_content = apply_filters('aemi_starter_content', [ 'widgets' => [ 'header-widget-area' => [ 'search' ], 'footer-widget-area' => [ '' ] ] ]); add_theme_support('starter-content', $starter_content); } } if (!function_exists('aemi_header_menu_filter')) { function aemi_header_menu_filter($items, $args) { if ($args->theme_location == 'header-menu') { $top_level_links = 0; foreach ($items as $key => $item) { if ($item->menu_item_parent == 0) { $top_level_links++; } if ($top_level_links > 3) { unset($items[$key]); } } } return $items; } } if (!function_exists('aemi_tagcount_filter')) { function aemi_tagcount_filter($variable) { $variable = str_replace(' (', '•', $variable); $variable = str_replace(')', '', $variable); return $variable; } } if ( ! function_exists( 'aemi_pingback_header' ) ) { function aemi_pingback_header() { if ( is_singular() && pings_open() ) { echo ''; } } } if (!function_exists('aemi_widgets_init')) { function aemi_widgets_init() { register_sidebar([ 'name' => __('Overlay Widget Area', 'aemi'), 'id' => 'overlay-widget-area', 'description' => __('Add widgets in this area to display them on overlay area.', 'aemi'), 'before_widget' => '