Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( class_exists( 'Kirki' ) ) {
- Kirki::add_config( 'theme_customizer_config_id', array(
- 'capability' => 'edit_theme_options',
- 'option_type' => 'theme_mod',
- ) );
- Kirki::add_panel( 'theme_customizer_panel_id', array(
- 'priority' => 10,
- 'title' => esc_html__( 'Hello theme options', 'kirki' ),
- ) );
- Kirki::add_section( 'theme_blog_homepage_settings', array(
- 'title' => esc_html__( 'Blog settings', 'kirki' ),
- 'panel' => 'theme_customizer_panel_id',
- 'priority' => 160,
- ) );
- Kirki::add_field( 'theme_customizer_config_id', [
- 'type' => 'text',
- 'settings' => 'blog_text_setting',
- 'label' => esc_html__( 'Text Control', 'kirki' ),
- 'section' => 'theme_blog_homepage_settings',
- 'default' => esc_html__( 'This is a default value', 'kirki' ),
- 'priority' => 10,
- ] );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement