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 revisionBoth sides next revision
onny:notizen:programmierung [2022/03/17 19:34] – old revision restored (2022/03/08 10:48) 65.108.46.72onny:notizen:programmierung [2022/03/17 19:35] – old revision restored (2022/03/16 20:29) 65.108.46.72
Line 266: Line 266:
   console.log('ready');   console.log('ready');
 }; };
 +</code>
 +
 +add / remove class
 +<code javascript>
 +burgerMenu.classList.remove('is-active');
 +burgerMenu.classList.add('is-active');
 </code> </code>
 ==== vuejs ==== ==== vuejs ====
Line 675: Line 681:
     '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>
 +
 +print setting text inside template
 +<code php>
 +<?php echo get_option('fachwerksauna_footer-text'); ?>
 </code> </code>
 ===== sql ===== ===== sql =====
onny/notizen/programmierung.txt · Last modified: 2023/11/07 15:40 by 127.0.0.1