add_section( 'blog_corner_typography', array( 'panel' => 'blog_corner_theme_options', 'title' => esc_html__( 'Typography', 'blog-corner' ), ) ); // Typography - Site Title Font. $wp_customize->add_setting( 'blog_corner_site_title_font', array( 'default' => 'Work Sans', 'sanitize_callback' => 'blog_corner_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_corner_site_title_font', array( 'label' => esc_html__( 'Site Title Font Family', 'blog-corner' ), 'section' => 'blog_corner_typography', 'settings' => 'blog_corner_site_title_font', 'type' => 'select', 'choices' => blog_corner_get_all_google_font_families(), ) ); // Typography - Site Description Font. $wp_customize->add_setting( 'blog_corner_site_description_font', array( 'default' => 'Public Sans', 'sanitize_callback' => 'blog_corner_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_corner_site_description_font', array( 'label' => esc_html__( 'Site Description Font Family', 'blog-corner' ), 'section' => 'blog_corner_typography', 'settings' => 'blog_corner_site_description_font', 'type' => 'select', 'choices' => blog_corner_get_all_google_font_families(), ) ); // Typography - Header Font. $wp_customize->add_setting( 'blog_corner_header_font', array( 'default' => 'Roboto', 'sanitize_callback' => 'blog_corner_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_corner_header_font', array( 'label' => esc_html__( 'Header Font Family', 'blog-corner' ), 'section' => 'blog_corner_typography', 'settings' => 'blog_corner_header_font', 'type' => 'select', 'choices' => blog_corner_get_all_google_font_families(), ) ); // Typography - Body Font. $wp_customize->add_setting( 'blog_corner_body_font', array( 'default' => 'Public Sans', 'sanitize_callback' => 'blog_corner_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_corner_body_font', array( 'label' => esc_html__( 'Body Font Family', 'blog-corner' ), 'section' => 'blog_corner_typography', 'settings' => 'blog_corner_body_font', 'type' => 'select', 'choices' => blog_corner_get_all_google_font_families(), ) );