Last active
September 29, 2017 02:57
-
-
Save bkaminski/00258f7753539b17e315bdd86b087ab3 to your computer and use it in GitHub Desktop.
H1 Text inside Bootstrap 3 Carousel WP Theme Customizer Func
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
$wp_customize->add_setting( 'theme_slug_slide_title_1', array( | |
'default' => 'No Title Text Has Been Entered', | |
'sanitize_callback' => 'sanitize_headline_one_text', | |
)); | |
function sanitize_headline_one_text( $input ) { | |
return wp_kses_post( force_balance_tags( $input ) ); | |
} | |
$wp_customize->add_control( 'theme_slug_slide_title_1', array( | |
'type' => 'text', | |
'label' => __( 'Heading Text Here:', 'theme_slug' ), | |
'section' => 'home_slide_img_one' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment