-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
42 lines (42 loc) · 1.28 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
38
39
40
41
42
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- This WordPress theme was created with the WordPack Theme Boilerplate by josias-r from GitHub. -->
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
<?php
bloginfo( 'name' );
wp_title();
?>
</title>
<meta name="og:title" content="
<?php
bloginfo( 'name' );
wp_title();
?>
">
<?php if ( has_excerpt() && is_singular() ) : ?>
<meta name="description" content="<?php echo esc_attr( get_the_excerpt() ); ?>">
<meta name="og:description" content="<?php echo esc_attr( get_the_excerpt() ); ?>">
<?php else : ?>
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<meta name="og:description" content="<?php bloginfo( 'description' ); ?>">
<?php endif; ?>
<!-- Head Hook -->
<?php wp_head(); ?>
</head>
<body data-barba="wrapper" <?php body_class(); ?>>
<main data-barba="container" data-barba-namespace="<?php echo esc_attr( implode( ' ', get_body_class() ) ); ?>">
<!-- Navigation START -->
<nav>
<?php
$args = array(
'theme_location' => 'header-nav',
// 'container' => 'ul
);
wp_nav_menu( $args );
?>
</nav>
<!-- Navigation END -->