-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathheader.php
37 lines (31 loc) · 1.17 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Default Header Template
*
*/
?>
<!doctype html>
<html <?php language_attributes(); ?> class="h-100">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php // Place favicon.ico and apple-touch-icon.png in the root of the domain ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?= vite('main.js') ?>
<?php wp_head(); ?>
</head>
<body <?php body_class('d-flex flex-column h-100'); ?>>
<header class="site-header" role="banner">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="<?= home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarMain">
<?php h5bs_primary_nav(); ?>
</div>
</div>
</nav>
</header>