-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
54 lines (47 loc) · 2.02 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
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.svg">
<link rel="preconnect" href="https://player.vimeo.com">
<link rel="preconnect" href="https://i.vimeocdn.com">
<link rel="preconnect" href="https://f.vimeocdn.com">
<?php wp_head(); ?>
<link rel="preload" href="<?php echo get_template_directory_uri(); ?>/fonts/red-hat-text-400.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_template_directory_uri(); ?>/fonts/red-hat-text-700.woff2" as="font" type="font/woff2" crossorigin>
<style>
@font-face {
font-family: 'Red Hat Text';
src: url(<?php echo get_template_directory_uri(); ?>/fonts/red-hat-text-400.woff2) format("woff2");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Red Hat Text';
src: url(<?php echo get_template_directory_uri(); ?>/fonts/red-hat-text-700.woff2) format("woff2");
font-weight: 700;
font-display: swap;
}
</style>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed wrapper">
<header id="header">
<div id="branding">
<div id="site-title">
<?php if (is_front_page() || is_home() || is_front_page() && is_home()) {
echo '<h1 class="frontpage_title">';
} ?>
<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_html(get_bloginfo('name')); ?>" rel="home"><?php echo esc_html(get_bloginfo('name')); ?></a>
<?php if (is_front_page() || is_home() || is_front_page() && is_home()) {
echo '</h1>';
} ?>
</div>
</div>
<nav id="menu">
<!-- <div id="search"><?php get_search_form(); ?></div> -->
<!-- <?php wp_nav_menu(array('theme_location' => 'main-menu')); ?> -->
</nav>
</header>
<div id="container">