Minecraft-Modern-Theme/header.php aktualisiert

This commit is contained in:
2025-11-29 21:55:05 +00:00
parent 75af878db9
commit 32bbb0b36f

View File

@@ -12,14 +12,12 @@
<div class="header-main"> <div class="header-main">
<div class="site-branding"> <div class="site-branding">
<?php <?php
// Zeigt das Logo an, wenn eines vorhanden ist.
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) { if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
the_custom_logo(); the_custom_logo();
} }
?> ?>
<?php <?php
// Zeigt den Titel der Website IMMER an.
// Verwendet <h1> auf der Startseite, sonst <p> für bessere SEO.
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>