tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /*Default Global Color Palette*/ $globalColorsPalette = nxt_global_color_palette(); add_theme_support('editor-color-palette', apply_filters('nxt-global-color-palette', $globalColorsPalette)); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'menu-1' => esc_html__( 'Primary', 'nexter' ), ) ); // Gutenberg wide images. add_theme_support( 'align-wide' ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'nexter_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. */ add_theme_support( 'custom-logo', array( 'height' => 180, 'width' => 60, 'flex-width' => true, 'flex-height' => true, ) ); // WooCommerce. add_theme_support( 'woocommerce' ); add_theme_support( 'editor-styles' ); $minified = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; //add editor Style Admin css add_editor_style( 'assets/css/admin/editor-style'. $minified .'.css' ); } endif; add_action( 'after_setup_theme', 'nexter_setup' ); /** * Fix skip link focus in IE11. * * This does not enqueue the script because it is tiny and because it is only for IE11, * thus it does not warrant having an entire dedicated blocking script being loaded. * * @link https://git.io/vWdr2 */ function nexter_skip_link_focus_fix() { ?> '.wp_strip_all_tags(Nexter_Dynamic_Css::render_theme_css()).''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } add_action( 'wp_head', 'nexter_dynamic_enqueue_scripts' ); /** * Customizer Options */ require NXT_THEME_DIR . 'inc/customizer/customizer.php'; /** * Load Jetpack compatibility file. */ if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; } /** * Woocommerce Compatibility */ if ( class_exists( 'WooCommerce' ) ) { require_once NXT_THEME_DIR . 'inc/third-party/woocommerce/nexter-woocommerce-config.php'; }