-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
40 lines (36 loc) · 1.52 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cnBeta
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="no-referrer">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
<meta name="theme-color" content="#fff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#121212" media="(prefers-color-scheme: dark)">
<link rel="icon" href="/wp-content/themes/cnbeta/favicon-32x32.png" sizes="32x32" />
<link rel="icon" href="/wp-content/themes/cnbeta/favicon-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="/wp-content/themes/cnbeta/favicon.png" />
<meta name="msapplication-TileImage" content="/wp-content/themes/cnbeta/favicon.png" />
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site container-fluid py-3">
<?php if ( !is_singular() ) : ?>
<header id="masthead" class="site-header border-bottom mb-3 ratio ratio-16x9">
<div class="site-branding">
<h1 class="site-title fw-bold m-0"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="link-dark text-decoration-none" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
</div>
</header>
<?php endif; ?>