tag in the document head, and expect WordPress to // provide it for us. add_theme_support( 'title-tag' ); // Allow editor style. add_editor_style('css/editor-style.css'); // Makes phone1st available for translation. // Translations can be added to the /languages/ directory. load_theme_textdomain( 'phone1st', get_template_directory() . '/languages' ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop // rss feeds add_theme_support('automatic-feed-links'); // The content width not required only here to satisfy WordPress tests. When using grids the content width is not usualy known so set it to the max-width or leave it out. if ( ! isset( $content_width ) ) { $content_width = 1200; } // adding post format support add_theme_support( 'post-formats', array( 'aside', // no title & short 'gallery', // gallery of images 'link', // quick link to other site 'image', // an image 'quote', // a quick quote 'status', // a Facebook like status update 'video', // video 'audio', // audio 'chat' // chat transcript ) ); // wp menus add_theme_support( 'menus' ); // registering wp menus - see menus-navigation.php register_nav_menus( array( 'main-nav' => __( 'The Main Menu', 'phone1st' ), // main nav in header 'footer-links' => __( 'Footer Links', 'phone1st' ) // secondary nav in footer ) ); } /* end phone1st theme support */ /********************* OTHER ITEMS *********************/ // Switches 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' ) ); /************* CUSTOM LOGIN PAGE *****************/ // Customise the log-in page function phone1st_login_css() { wp_enqueue_style( 'phone1st_login_css', get_template_directory_uri() . '/css/login.css', false ); } // changing the logo link from wordpress.org to your site function phone1st_login_url() { return home_url(); } // changing the alt text on the logo to show your site name function phone1st_login_title() { return get_option('blogname'); } // calling it only on the login page add_action( 'login_enqueue_scripts', 'phone1st_login_css', 10 ); add_filter('login_headerurl', 'phone1st_login_url'); add_filter('login_headertitle', 'phone1st_login_title'); ?>