Site Tools


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 revisionBoth sides next revision
onny:notizen:programmierung [2022/03/17 13:00] – old revision restored (2022/03/08 11:22) 2a01:4f8:192:3e4::2onny:notizen:programmierung [2022/03/17 19:34] – old revision restored (2022/03/08 10:48) 65.108.46.72
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