/** * Educator Education functions and definitions * * @package Educator Education */ /** * Set the content width based on the theme's design and stylesheet. */ /* Theme Setup */ if (!function_exists('educator_education_setup')): function educator_education_setup() { $GLOBALS['content_width'] = apply_filters('educator_education_content_width', 640); load_theme_textdomain( 'educator-education', get_template_directory() . '/languages' ); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); add_theme_support('woocommerce'); add_theme_support('align-wide'); add_theme_support('wp-block-styles'); add_theme_support('title-tag'); add_theme_support('custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, )); add_image_size('educator-education-homepage-thumb', 250, 145, true); register_nav_menus(array( 'primary' => __('Primary Menu', 'educator-education'), )); add_theme_support('custom-background', array( 'default-color' => 'ffffff', )); add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support('responsive-embeds'); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ add_editor_style(array('css/editor-style.css', educator_education_font_url())); } endif; add_action( 'after_setup_theme', 'educator_education_setup' ); // Theme Widgets Setup function educator_education_widgets_init() { register_sidebar(array( 'name' => __('Blog Sidebar', 'educator-education'), 'description' => __('Appears on blog page sidebar', 'educator-education'), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '