-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader.php
More file actions
69 lines (45 loc) · 2.11 KB
/
header.php
File metadata and controls
69 lines (45 loc) · 2.11 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
62
63
64
65
66
67
68
69
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
*/
/*************************************************/
/* The header code is a little messy so now it lives in its own file.
You'll find a lot of the HTML5 boilerplate stuff here: */
require_once( get_template_directory() . '/html-header.php');
/*************************************************/?>
<body <?php body_class(); ?>>
<?php cogito_action_above_container(); ?>
<div id="page" class="hfeed container" role="main">
<?php cogito_action_container_top(); ?>
<nav class="skiplink"><a href="#skipcontent">Skip Content? ↓</a></nav>
<?php //HEADER BLOCK ?>
<header id="branding" role="banner" class="row outer">
<?php cogito_action_header_top(); ?>
<?php /****************************************************************
Note: people generally have very different headers so there's a separate file called header_block.php
Your options are :
1) Preferred solution: create a new header_block.php file or duplicate the one in cogito_wp and put it
in your child theme. Then put your header in there
2) Less ideal: duplicate header.php in your child theme and replace all of this <?php tag with your header code
*/
get_template_part( 'header_block');
/****************************************************************/ ?>
<?php cogito_action_header_bottom(); ?>
</header>
<!-- See http://foundation.zurb.com/docs/components/top-bar.html for how this works -->
<nav id="access" role="navigation" class="row top-bar hide-for-small">
<!-- <ul class="title-area">
<li class="name">
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul> -->
<section class="top-bar-section">
<?php desktop_nav(); ?>
</section>
</nav>
<?php cogito_above_main(); ?>
<div id="main" class="row outer">