fixing html validation by moving the menu wrapper outside of the conditional in topbar
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 1 Aug 2017 14:19:12 +0000 (10:19 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 1 Aug 2017 14:19:12 +0000 (10:19 -0400)
topbar file had the main menu wrapper inside of the conditional which broke the mark up
on the front page

sections/header.php
sections/top-bar.php

index 56a9f82..edbf2c8 100644 (file)
@@ -25,9 +25,9 @@
                     <div class="small-12 large-5 columns large-pull-6 text-center global-logo">
                         <a href="<?php bloginfo('url')?>"><img alt="Baraga County Michigan" src="<?php echo get_template_directory_uri();?>/assets/baraga-county-logo.png"></a>
                     </div>
-                    </div>
                 </div>
             </div>
+        </div>
         <?php
         include "top-bar.php";
         ?>
index 11ed2d4..a7905d0 100644 (file)
@@ -14,9 +14,10 @@ switch ($GLOBALS['entity_page_slug']) {
         break;
     default:
         break;
-}
-if( in_array(get_page_template(), page_templates()) || in_array($GLOBALS['entity_page_slug'],get_landing_pages()) ){ ?>
-    <div class="menu-wrapper">
+} ?>
+ <div class="menu-wrapper">
+<?php if( in_array(get_page_template(), page_templates()) || in_array($GLOBALS['entity_page_slug'],get_landing_pages()) ){ ?>
+   
           <div id="interior-menu" class="show-for-large row">
               <div class="small-3 columns">
                  <a class="header-logo-link" href="<?php echo get_site_url(); ?>/<?php echo $GLOBALS['entity_page_slug']; ?>">