tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * 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', 'blogiee' ), ) ); /* * 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', 'style', 'script', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'blogiee_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Use of starter content add_theme_support( 'starter-content', array( 'widgets' => array( 'home_right_1' => array( 'text_about', 'text_business_info', 'archives', ), 'footer_widget_first_column' => array( 'archives', ), ), 'posts' => array( 'home' => array( 'thumbnail' => '{{image-home}}', ), 'about', 'contact', 'blog', 'homepage-section', ), 'attachments' => array( 'image-home' => array( 'post_title' => _x( 'Home', 'Theme starter content', 'blogiee' ), 'file' => 'assets/img/redcharlie-0hY_zGpLnrY-unsplash-1.jpg', ) ), 'options' => array( 'show_on_front' => 'page', 'page_on_front' => '{{home}}', 'page_for_posts' => '{{blog}}', ), 'nav_menus' => array( 'main_menu_nav' => array( 'name' => __( 'Top Menu', 'blogiee' ), 'items' => array( 'page_home', 'page_about', 'page_blog', 'page_contact', ), ), ), ) ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); } endif; add_action( 'after_setup_theme', 'blogiee_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $blogiee_content_width */ function blogiee_content_width() { $GLOBALS['content_width'] = apply_filters( 'content_width', 640 ); } add_action( 'after_setup_theme', 'blogiee_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function blogiee_scripts() { wp_enqueue_style( 'blogiee_bootstrap_css', get_template_directory_uri() . '/assets/bundle/bootstrap.min.css', '4.5.0', true ); wp_enqueue_style( 'blogiee_google_fonts_oswald', 'https://fonts.googleapis.com/css2?family=Oswald:wght@400;500&display=swap', null, true ); wp_enqueue_style( 'blogiee_google_fonts_lato', 'https://fonts.googleapis.com/css2?family=Lato&display=swap', null, true ); wp_enqueue_style( 'blogiee_google_fonts_cabin', 'https://fonts.googleapis.com/css2?family=Cabin&display=swap', null, true ); wp_enqueue_style( 'blogiee_google_fonts_cairo', 'https://fonts.googleapis.com/css2?family=Cairo:wght@600&display=swap', null, true ); wp_enqueue_style( 'blogiee_fontawesome_css', get_template_directory_uri() . '/assets/bundle/font-awesome.min.css', '4.7.0', true ); wp_enqueue_style( 'blogiee_style', get_template_directory_uri() . '/style.css', array( 'blogiee_bootstrap_css' ), true ); wp_enqueue_style( 'blogiee_rtl_style', get_template_directory_uri() . '/rtl.css', array( 'blogiee_style' ), true ); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'blogiee_bootstrap_js', get_template_directory_uri() . '/assets/bundle/bootstrap.min.js', array( 'jquery' ), '4.5.0', true ); wp_enqueue_script( 'blogiee_scripts_js', get_template_directory_uri() . '/assets/js/scripts.js', array( 'blogiee_bootstrap_js' ), '1.0.0', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'blogiee_scripts' ); /** * Register Custom Navigation Walker */ function blogiee_register_navwalker() { require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php'; } add_action( 'after_setup_theme', 'blogiee_register_navwalker' ); function blogiee_main_menu_func() { register_nav_menus( array( 'main_menu_nav' => __( 'Main Menu', 'blogiee' ), 'footer_menu' => __( 'Footer Menu', 'blogiee' ), ) ); } add_action( 'init', 'blogiee_main_menu_func' ); /** * Register our sidebars and widgetized areas. * */ function blogiee_home_sidebar_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'blogiee' ), 'id' => 'home_right_1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'blogiee_home_sidebar_widgets_init' ); function blogiee_footer_widget_area_init() { register_sidebar( array( 'name' => __( 'Footer widgets Column 1', 'blogiee' ), 'id' => 'footer_widget_first_column', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer widgets Column 2', 'blogiee' ), 'id' => 'footer_widget_second_column', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer widgets Column 3', 'blogiee' ), 'id' => 'footer_widget_third_column', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer widgets Column 4', 'blogiee' ), 'id' => 'footer_widget_fourth_column', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'blogiee_footer_widget_area_init' ); function blogiee_wpdocs_my_search_form( $form ) { $form = ''; return $form; } add_filter( 'get_search_form', 'blogiee_wpdocs_my_search_form' ); // Modify Default Gravatar Size function blogiee_crunchify_author_box_gravatar_size( $size ) { return 90; } add_filter( 'genesis_author_box_gravatar_size', 'blogiee_crunchify_author_box_gravatar_size' ); require_once get_template_directory() . '/admin/admin.php'; require_once get_template_directory() . '/customize/customize.php'; require_once get_template_directory() . '/customize/recommended-plugins.php';