wp-duckbehaviorjournal/header.php
Kumi c61ba4a695
feat: add new WordPress theme for Duck Behavior Journal
- Set up a new WordPress theme with custom logo, header image, and menus
- Implement the WP Bootstrap Navwalker for improved navigation
- Add Bootstrap and jQuery for styling and functionality
- Customize hero section via the Customizer API
- Include footer with customizable text and social media links
- Integrate featured articles and page templates
- Enhance styles with a dedicated CSS file

References: #123, #124

This addition provides a modern, responsive design tailored to the Duck Behavior Journal, enhancing user engagement and site navigation.
2024-06-20 09:22:10 +02:00

32 lines
No EOL
1.1 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title>
<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>