Added a comment for the global woocommerce variable
authorLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 19:29:58 +0000 (14:29 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 28 Feb 2017 19:29:58 +0000 (14:29 -0500)
sections/header.php

index f08f90e..19fc80a 100644 (file)
@@ -1,5 +1,10 @@
-<?php global $woocommerce; ?>
-<header class="main">
+<?php 
+    // This declaration is here to allow the top search section to retrieve the
+    //  correct checkout and cart urls, as well as allowing WooCommerce.php access
+    //  to this information.
+    global $woocommerce;
+?>
+<header class="main opensearchserver.ignore">
     <div class="row large-collapse">
         <div class="small-12 medium-4 large-2 columns">
             <a class="logo" href="<?php bloginfo('url')?>"><img alt="Cornwell's Turkeyville U.S.A" src="<?php bloginfo('template_url'); ?>/assets/cornwells-logo.png"></a>