wp-duckbehaviorjournal/header.php
Kumi d87996372e
fix(header): remove duplicate title tag
Removed the redundant title tag from the header to prevent duplication and potential SEO issues. The title is already dynamically handled elsewhere in the theme. Reducing clutter and improving maintainability.
2024-06-20 15:03:35 +02:00

31 lines
No EOL
997 B
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<?php wp_head(); ?>
</head>
<body>
<!-- Header -->
<header class="bg-light py-3">
<div class="container d-flex justify-content-between align-items-center">
<?php if (has_custom_logo()) : ?>
<?php the_custom_logo(); ?>
<?php else : ?>
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
<?php endif; ?>
<nav>
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'menu_class' => 'nav',
'container' => false,
'walker' => new WP_Bootstrap_Navwalker(),
));
?>
</nav>
</div>
</header>