Skip to content

Commit

Permalink
Update customizer-settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Oct 6, 2024
1 parent 11e2f8d commit 33f90bd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions inc/customizer/customizer-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,32 @@ function hovercraft_customizer($wp_customize) {
)
) );

// site name text transform setting
$wp_customize->add_setting( 'hovercraft_site_name_text_transform', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// site name text transform control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_site_name_text_transform',
array(
'label' => __( 'Site Name Text Transform', 'hovercraft' ),
'description' => __( 'Specify text transform for Site Name element?', 'hovercraft' ),
'section' => 'hovercraft_fonts',
'settings' => 'hovercraft_site_name_text_transform',
'type' => 'select',
'choices' => array(
'none' => 'Default (None)',
'uppercase' => 'Uppercase',
'lowercase' => 'Lowercase',
'capitalize' => 'Capitalize',
)
)
) );

// offcanvas menu font size setting
$wp_customize->add_setting( 'hovercraft_offcanvas_font_size', array(
'default' => '18',
Expand Down

0 comments on commit 33f90bd

Please sign in to comment.