-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
38 lines (30 loc) · 973 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<?php wp_head(); ?>
</head>
<body class="dark-mode">
<header>
<?php
if (function_exists('the_custom_logo')) {
$custom_logo_id = get_theme_mod('custom_logo');
$logo = wp_get_attachment_image_src($custom_logo_id, 'full'); // Use 'full' to get the original image size
}
?>
<a href="/" class="logo">
<?php echo get_bloginfo('name');?>
<span style="background-image:url('<?php echo $logo[0]; ?>')"></span>
</a>
<nav>
<?php
wp_nav_menu(
array(
'menu' => 'primary',
'container' => '',
'theme_location' => 'primary',
'items_wrap' => '<ul id="" class="">%3$s</ul>'
)
);
?>
</nav>
</header>