Minecraft-Modern-Theme/header.php aktualisiert
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
the_custom_logo();
|
the_custom_logo();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php
|
|
||||||
|
|
||||||
|
<?php
|
||||||
if ( is_front_page() && is_home() ) :
|
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>
|
<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>
|
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- NAVIGATION START -->
|
||||||
<nav id="site-navigation" class="main-navigation">
|
<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>
|
</nav>
|
||||||
|
<!-- NAVIGATION ENDE -->
|
||||||
|
|
||||||
<div class="header-info">
|
<div class="header-info">
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user