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' ); set_post_thumbnail_size( 150, 150, true ); add_image_size( 'creative-gem-related', 200, 125, true ); //related // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary', 'creative-gem' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); } endif; add_action( 'after_setup_theme', 'creative_gem_setup' ); function creative_gem_content_width() { $GLOBALS['content_width'] = apply_filters( 'creative_gem_content_width', 678 ); } add_action( 'after_setup_theme', 'creative_gem_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function creative_gem_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'creative-gem' ), 'id' => 'sidebar', 'description' => '', 'before_widget' => '
', 'before_title' => '