관리-도구
편집 파일: font-options.php
<?php /** * Font section */ // Font section. $wp_customize->add_section( 'blog_articles_font_options', array( 'title' => esc_html__( 'Font ( Typography ) Options', 'blog-articles' ), 'panel' => 'blog_articles_theme_options_panel', ) ); // Typography - Site Title Font. $wp_customize->add_setting( 'blog_articles_site_title_font', array( 'default' => '', 'sanitize_callback' => 'blog_articles_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_articles_site_title_font', array( 'label' => esc_html__( 'Site Title Font Family', 'blog-articles' ), 'section' => 'blog_articles_font_options', 'settings' => 'blog_articles_site_title_font', 'type' => 'select', 'choices' => blog_articles_font_choices(), ) ); // Typography - Site Description Font. $wp_customize->add_setting( 'blog_articles_site_description_font', array( 'default' => '', 'sanitize_callback' => 'blog_articles_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_articles_site_description_font', array( 'label' => esc_html__( 'Site Description Font Family', 'blog-articles' ), 'section' => 'blog_articles_font_options', 'settings' => 'blog_articles_site_description_font', 'type' => 'select', 'choices' => blog_articles_font_choices(), ) ); // Typography - Header Font. $wp_customize->add_setting( 'blog_articles_header_font', array( 'default' => '', 'sanitize_callback' => 'blog_articles_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_articles_header_font', array( 'label' => esc_html__( 'Header Font Family', 'blog-articles' ), 'section' => 'blog_articles_font_options', 'settings' => 'blog_articles_header_font', 'type' => 'select', 'choices' => blog_articles_font_choices(), ) ); // Typography - Body Font. $wp_customize->add_setting( 'blog_articles_body_font', array( 'default' => '', 'sanitize_callback' => 'blog_articles_sanitize_google_fonts', ) ); $wp_customize->add_control( 'blog_articles_body_font', array( 'label' => esc_html__( 'Body Font Family', 'blog-articles' ), 'section' => 'blog_articles_font_options', 'settings' => 'blog_articles_body_font', 'type' => 'select', 'choices' => blog_articles_font_choices(), ) );