tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); } /*Custom Header*/ $themelogo = of_get_option( 'site_logo' ); $args = array( 'flex-width' => true, 'flex-height' => true, 'default-image' => $themelogo, ); add_theme_support( 'custom-header', $args ); /*Custom background*/ $default_background = of_get_option( 'site_background' ); if ( $default_background ) { $default_color_code = $default_background['color']; $default_color = str_replace('#', '', $default_color_code); $default_image = $default_background['image']; $default_repeat = $default_background['repeat']; $default_position_x = $default_background['position']; $default_attachment = $default_background['attachment']; } $args = array( 'default-color' => $default_color, 'default-image' => $default_image, 'default-repeat' => $default_repeat, 'default-position-x' => $default_position_x, 'default-attachment' => $default_attachment, 'wp-head-callback' => '_custom_background_cb', ); add_theme_support( 'custom-background', $args ); /* schema */ function html_tag_schema() { $schema = 'http://schema.org/'; // Is single post if(is_single()) { $type = "Article"; } // Is author page elseif( is_author() ) { $type = 'ProfilePage'; } // Is search results page elseif( is_search() ) { $type = 'SearchResultsPage'; } else { $type = 'WebPage'; } echo 'itemscope="itemscope" itemtype="' . $schema . $type . '"'; }