Minecraft-Modern-Theme/header.php aktualisiert

This commit is contained in:
2026-01-06 17:18:58 +00:00
parent 9fe45108d8
commit ad1ff1843b

View File

@@ -16,8 +16,8 @@
the_custom_logo();
}
?>
<?php
<?php
if ( is_front_page() && is_home() ) :
?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
@@ -25,9 +25,25 @@
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif; ?>
</div>
<!-- NAVIGATION START -->
<nav id="site-navigation" class="main-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false ) ); ?>
<!-- Mobile Toggle Button -->
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
<i class="fas fa-bars"></i>
</button>
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false, // Wichtig: Kein Div-Wrapper drumherum
'menu_class' => 'primary-menu', // Unsere CSS Klasse
'fallback_cb' => false, // Kein Fallback anzeigen
) );
?>
</nav>
<!-- NAVIGATION ENDE -->
<div class="header-info">
<div class="social-links">
<?php