Created
May 28, 2017 16:00
-
-
Save shakeeb-mts/f52b0ff7fba54f377c108b713af9d49e to your computer and use it in GitHub Desktop.
Kirki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Kirki::add_field( 'gs', array( | |
'type' => 'color', | |
'settings' => 'my_setting', | |
'label' => __( 'Header Background Color', 'my_textdomain' ), | |
'section' => 'my_section', | |
'default' => '#0088CC', | |
'priority' => 10, | |
'output' => array( | |
array( | |
'element' => '.site-header', | |
'property' => 'background-color', | |
'suffix' => '!important' | |
), | |
), | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment