esc_html__( 'Main menu', 'cafe-elementor' ), )); add_theme_support( 'responsive-embeds' ); add_theme_support( 'woocommerce' ); add_theme_support( 'align-wide' ); add_theme_support('title-tag'); add_theme_support('automatic-feed-links'); add_theme_support( 'wp-block-styles' ); add_theme_support('post-thumbnails'); add_theme_support( 'custom-background', array( 'default-color' => 'f3f3f3' )); add_theme_support( 'custom-logo', array( 'height' => 120, 'width' => 240, 'flex-height' => true, ) ); add_theme_support( 'custom-header', array( 'default-image' => get_parent_theme_file_uri( '/assets/images/default-header-image.png' ), 'width' => 1920, 'flex-width' => true, 'height' => 550, 'flex-height' => true, 'header-text' => false, )); register_default_headers( array( 'default-image' => array( 'url' => '%s/assets/images/default-header-image.png', 'thumbnail_url' => '%s/assets/images/default-header-image.png', 'description' => __( 'Default Header Image', 'cafe-elementor' ), ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_editor_style( array( '/assets/css/editor-style.css' ) ); global $pagenow; if ( is_admin() && $pagenow === 'themes.php' && (!isset($_GET['page']) || $_GET['page'] !== 'cafe_elementor_about')) { add_action('admin_notices', 'cafe_elementor_activation_notice'); } } add_action( 'after_setup_theme', 'cafe_elementor_after_setup_theme', 999 ); } function cafe_elementor_activation_notice() { $cafe_elementor_meta = get_option( 'cafe_elementor_admin_notice' ); if (!$cafe_elementor_meta) { echo '
'. esc_html__( 'Thank you for choosing Cafe Elementor theme .To setup the theme, please visit the get started page.', 'cafe-elementor' ) .'
'; echo ''. esc_html__( 'GET STARTED', 'cafe-elementor' ) .''; echo ''. esc_html__( 'BUY NOW', 'cafe-elementor' ) .''; echo ''. esc_html__( 'DEMO', 'cafe-elementor' ) .''; echo '