Trying to wrap my head around the header.
authorIan Weller <ian@gaslightmedia.com>
Tue, 14 Feb 2017 18:22:40 +0000 (13:22 -0500)
committerIan Weller <ian@gaslightmedia.com>
Tue, 14 Feb 2017 18:22:40 +0000 (13:22 -0500)
I am slowly trying to wrap my head around the layout of the header area.

index.php
sections/header.php

index 3f0fbc4..950ba49 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,7 +8,6 @@
                 <div id="page-wrapper">
                     <?php
                     include "sections/header.php"; 
-                    include "sections/top-bar.php";
                     include "sections/off-canvas.php"; 
                     if (is_front_page()) { 
                         include "sections/front-page.php"; 
index 1090e21..b56f507 100644 (file)
@@ -3,5 +3,17 @@
         <div class="small-12 medium-4 large-2 columns">
             <a href="<?php bloginfo('url')?>"><img src="<?php bloginfo('template_url'); ?>/assets/cornwells-logo.png"></a>
         </div>
+        <div class="small-12 medium-8 large-10 columns">
+            <div class="search-shop right">
+                <a href="#"><img src="<?php bloginfo('template_url'); ?>/assets/cart-icon.png"> View Cart</a>
+                <button class="checkout">Checkout</button>
+                <button class="login">Log In</button>
+                <form role="search" method="get" class="searchform" action="<?php echo home_url('/'); ?>">
+                     <input class="search-input" type="text" placeholder="Search" value="" name="s">
+                     <input class="search-button" type="submit" value="GO" name="submit">
+                </form>
+            </div>
+            <?php get_template_part('sections/top-bar.php');?>
+        </div>
     </div>
 </header>
\ No newline at end of file