//TYPOGRAPHY SETUP
$wp_customize->add_section( 'example_typography', array(
'title' => 'Typography settings',
'priority' => 35,
) );
//font family
$wp_customize->add_setting( 'font_family', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_family', array(
'label' => 'Font family',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_family',
'choices' => $font_face,
) ) );
//Font size example
$wp_customize->add_setting( 'font_size', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_size', array(
'label' => 'Font size',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_size',
'choices' => $font_size,
) ) );
//Text align example
$wp_customize->add_setting( 'text_align', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'text_align', array(
'label' => 'text align',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'text_align',
'choices' => $align_text,
) ) );
//Font style example
$wp_customize->add_setting( 'font_style', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_style', array(
'label' => 'font style',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_style',
'choices' => $font_style,
) ) );
// Font Color
$wp_customize->add_setting('font_color', array(
'default' => '#4b4b4b',
));
$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'font_color', array(
'label' => __('Font Color Setting', 'offline'),
'section' => 'example_typography',
'settings' => 'font_color',
)));
//Here Ends New Code
$wp_customize->add_section( 'example_typography', array(
'title' => 'Typography settings',
'priority' => 35,
) );
//font family
$wp_customize->add_setting( 'font_family', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_family', array(
'label' => 'Font family',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_family',
'choices' => $font_face,
) ) );
//Font size example
$wp_customize->add_setting( 'font_size', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_size', array(
'label' => 'Font size',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_size',
'choices' => $font_size,
) ) );
//Text align example
$wp_customize->add_setting( 'text_align', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'text_align', array(
'label' => 'text align',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'text_align',
'choices' => $align_text,
) ) );
//Font style example
$wp_customize->add_setting( 'font_style', array(
'default' => '',
) );
$wp_customize->add_control( new example_Customize_Control(
$wp_customize, 'font_style', array(
'label' => 'font style',
'type' => 'select',
'section' => 'example_typography',
'settings' => 'font_style',
'choices' => $font_style,
) ) );
// Font Color
$wp_customize->add_setting('font_color', array(
'default' => '#4b4b4b',
));
$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'font_color', array(
'label' => __('Font Color Setting', 'offline'),
'section' => 'example_typography',
'settings' => 'font_color',
)));
//Here Ends New Code
No comments:
Post a Comment