Minecraft-Modern-Theme/inc/customizer.php aktualisiert

This commit is contained in:
2026-01-06 17:19:12 +00:00
parent ad1ff1843b
commit f1eabc1c9d

View File

@@ -111,6 +111,19 @@ function minecraft_modern_customize_register( $wp_customize ) {
$wp_customize->add_setting( 'hero_button_2_url', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw' ) );
$wp_customize->add_control( 'hero_button_2_url', array( 'label' => 'Button 2 URL', 'section' => 'hero_section', 'settings' => 'hero_button_2_url', 'type' => 'url' ) );
// --- Checkbox: Seitentitel auf Startseite verstecken ---
$wp_customize->add_setting( 'show_home_title', array(
'default' => false, // Standard: Aus (Titel wird versteckt)
'sanitize_callback' => 'wp_validate_boolean',
) );
$wp_customize->add_control( 'show_home_title', array(
'label' => 'Seitentitel "Home" anzeigen',
'description' => 'Aktiviere diese Option, wenn der Titel "Home" über dem Slider/Inhalt angezeigt werden soll.',
'section' => 'hero_section',
'settings' => 'show_home_title',
'type' => 'checkbox',
) );
// =========================================================================
// === 2. FARBEN & DARSTELLUNG (KOMBINIERT) ================================