100, 'height' => 100, ) ); /* * Make theme available for translation. */ load_child_theme_textdomain( 'buntu' ); } add_action( 'after_setup_theme', 'buntu_theme_setup', 20 ); /** * Primary color. * * @since 1.0.0 * * @param string $color Primary color value. * @return string Modified color. */ function buntu_color_primary_default( $color ) { $color = '230d5b'; return $color; } add_filter( 'theme_mod_color_primary', 'buntu_color_primary_default' ); /** * Custom header. * * @since 1.0.0 */ function buntu_custom_header() { add_theme_support( 'custom-header', array( 'default-image' => '%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' => __( '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( 'primary', _x( 'Primary', 'nav menu location', 'buntu' ) ); register_nav_menu( 'secondary', _x( 'Secondary', 'nav menu location', 'buntu' ) ); register_nav_menu( 'footer', _x( 'Footer', 'nav menu location', 'buntu' ) ); register_nav_menu( 'social', _x( 'Social', 'nav menu location', 'buntu' ) ); } add_action( 'init', 'buntu_register_menus', 1 ); /** * 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 ); if ( ! function_exists( 'buntu_the_custom_logo' ) ) : /** * Render logo. * * @since 1.3 */ function buntu_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif; add_action( 'buntu_custom_logo', 'buntu_the_custom_logo' );