This commit is contained in:
Jonas Heinrich 2022-03-08 12:28:51 +01:00
parent 01e848619c
commit 56cc24346f
3 changed files with 40 additions and 4 deletions

View file

@ -20,3 +20,26 @@ function fachwerksauna_setup() {
}
add_action( 'after_setup_theme', 'fachwerksauna_setup' );
function theme_customize_register( $wp_customize ) {
$wp_customize->add_setting( 'fachwerksauna_footer-text', array(
'default' => '',
'type' => 'option',
'capability' => 'edit_theme_options'
),);
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize, 'footer-text_control', array(
'label' => __( 'Footer text', 'fachwerksauna' ),
'description' => __( 'Text in footer area', 'fachwerksauna' ),
'settings' => 'fachwerksauna_footer-text',
'priority' => 10,
'section' => 'title_tagline',
'type' => 'text',
)
) );
}
add_action( 'customize_register', 'theme_customize_register' );