Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
onny:notizen:programmierung

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
onny:notizen:programmierung [2022/03/08 10:48] – [wordpress] 46.223.163.98onny:notizen:programmierung [2022/03/19 14:38] – old revision restored (2022/03/17 13:00) 2001:41d0:1004:60b::
Line 675: Line 675:
     'walker'          => new Nav_Footer_Walker(),     'walker'          => new Nav_Footer_Walker(),
 ) ); ) );
 +</code>
 +
 +customizer add option custom text
 +<code php>
 +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' );
 </code> </code>
 ===== sql ===== ===== sql =====
onny/notizen/programmierung.txt · Last modified: 2023/11/07 15:40 by 127.0.0.1