Change "add code" customizer function text a bit

Change "add code" customizer function label and description text a bit
to make sure everyone understands that the opening and closing
<script></script> or <style></style> whatever tags must be added, too.
This commit is contained in:
koenemann 2016-05-10 15:05:02 +02:00
parent 21faea2f50
commit e6439d328a
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ function understrap_theme_customize_register( $wp_customize ) {
) );
$wp_customize->add_section( 'understrap_theme_script_options', array(
'title' => __( 'Add scripts', 'understrap' )
'title' => __( 'Add custom code snippet', 'understrap' )
) );
$wp_customize->add_setting( 'understrap_theme_script_code_setting', array(
@ -74,7 +74,7 @@ function understrap_theme_customize_register( $wp_customize ) {
) );
$wp_customize->add_control( 'understrap_theme_script_code', array(
'label' => __( 'Add custom JS code here', 'understrap' ),
'label' => __( 'Add custom header code here. Like <script>yourcode</script> or <style>yourstyle</style> tags.', 'understrap' ),
'section' => 'understrap_theme_script_options',
'type' => 'textarea',
'settings' => 'understrap_theme_script_code_setting'