Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Define H1 Option
- $options['h1_heading'] = array( 'name' => 'H1 Heading',
- 'desc' => 'Choose your prefered font for H1 heading and titles.',
- 'id' => 'h1_heading',
- 'std' => array( 'size' => '32px', 'lineheight' => '32px', 'face' => 'Arial', 'color' => '#222'),
- 'type' => 'typography',
- 'options' => array(
- 'faces' => $typography_mixed_fonts )
- );
- /* H1 Heading font face */
- $wp_customize->add_setting( 'my_framework[h1_heading][face]', array(
- 'default' => $options['h1_heading']['std']['face'],
- 'type' => 'option'
- ) );
- $wp_customize->add_control( 'my_framework_h1_heading', array(
- 'label' => $options['h1_heading']['name'],
- 'section' => 'my_framework_header',
- 'settings' => 'my_framework[h1_heading][face]',
- 'type' => 'select',
- 'choices' => $options['h1_heading']['options']['faces']
- ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement