diff --git a/functions.php b/functions.php index 7253f87..55782ca 100644 --- a/functions.php +++ b/functions.php @@ -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' ); \ No newline at end of file diff --git a/index.php b/index.php index bc10af5..d0a2b3c 100644 --- a/index.php +++ b/index.php @@ -175,16 +175,21 @@