'%2$s/images/headers/beautiful-model.jpg', 'random-default' => false, 'width' => 1175, 'height' => 400, 'flex-width' => true, 'flex-height' => true, 'default-text-color' => '230d5b', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => 'stargazer_custom_header_wp_head', ) ); register_default_headers( array( 'beautiful-model' => array( 'url' => '%2$s/images/headers/beautiful-model.jpg', 'thumbnail_url' => '%2$s/images/headers/beautiful-model-thumb.jpg', // Translators: Header image description. 'description' => esc_html__( 'Beautiful Model', 'buntu' ), ), ) ); } add_action( 'after_setup_theme', 'buntu_custom_header' ); /** * Register nav menus. * * @since 1.0.0 */ function buntu_register_menus() { register_nav_menu( 'footer', esc_html_x( 'Footer', 'nav menu location', 'buntu' ) ); } add_action( 'init', 'buntu_register_menus', 11 ); /** * Go to top. * * @since 1.0.0 */ function buntu_add_goto_top() { echo ''; } add_action( 'wp_footer', 'buntu_add_goto_top' ); /** * Load widgets. */ require get_stylesheet_directory() . '/inc/widgets.php'; /** * Load Jetpack. */ require get_stylesheet_directory() . '/inc/jetpack.php'; /** * Adds support for the WordPress 'custom-background' theme feature. * * @since 1.0.0 */ function buntu_custom_background_setup() { add_theme_support( 'custom-background', array( 'default-color' => '6b269d', 'default-image' => get_stylesheet_directory_uri() . '/images/bg.jpg', 'wp-head-callback' => 'stargazer_custom_background_callback', ) ); } add_action( 'after_setup_theme', 'buntu_custom_background_setup', 10 );