-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
61 lines (51 loc) · 2.04 KB
/
header.php
File metadata and controls
61 lines (51 loc) · 2.04 KB
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
55
56
57
58
59
60
61
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!--//! header section -->
<header id="header_area" class="<?php echo get_theme_mod('default_position'); ?>">
<div class="container">
<div class="row">
<div class="col-md-3" id="logo">
<a href="<?php echo home_url(); ?>"><img src="<?php echo get_theme_mod('default_logo'); ?>" alt=""></a>
</div>
<div class="col-md-9">
<?php
wp_nav_menu(array(
'theme_location' => 'my_main_menu',
'menu_class' => 'nav-menu',
'walker' => new Walker_Nav_Menu_With_Icon(),
));
?>
</div>
</div>
</div>
</header>
<!-- //! Page Title & Breadcrumbs -->
<section class="header-banner" <?php if (is_front_page()) {
echo 'id="show"';
} ?>>
<div class="container">
<div class="row">
<div class="col-md-12">
<?php
if (!is_front_page()) : ?>
<div class="page-header">
<!-- //? Page Title -->
<?php get_template_part('template_parts/header', 'title'); ?>
<!--//? Breadcrumbs -->
<div class="header-breadcrumbs">
<?php get_template_part('template_parts/breadcrumbs'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</section>
</body>
</html>