Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**********************************/
- /*add Beast Scheme Switcher section*/
- /**********************************/
- $wp_customize->add_section( 'beast_scheme_section' , array(
- 'title' => __( 'Preset Theme Styles', 'beast' ),
- 'priority' => 40,
- 'description' => 'Gives user the ability to select preset color schemes for theme',
- )
- );
- /*add Beast Scheme Switcher setting*/
- $wp_customize->add_setting(
- 'beast_scheme_switch',
- array(
- 'default' => 'Default',
- 'transport' => 'postMessage'
- )
- );
- /*add Beast Scheme Switcher control*/
- $wp_customize->add_control(
- 'beast_scheme_switch', array(
- 'section' => 'beast_scheme_section',
- 'label' => 'Select Your Scheme',
- 'type' => 'select',
- 'choices' => array(
- 'default' => 'Default',
- 'red' => 'Red',
- 'orange' => 'Orange',
- 'yellow' => 'Yellow',
- 'green' => 'Green',
- 'blue' => 'Blue',
- 'purple' => 'Purple',
- 'white' => 'White'
- )
- )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement