Made Checkout and Cart pages not have the sidebar
authorLaury GvR <laury@gaslightmedia.com>
Fri, 16 Sep 2016 21:12:06 +0000 (17:12 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 16 Sep 2016 21:13:36 +0000 (17:13 -0400)
Sidebar will still show up on Shop pages and Category pages.

index.php
sections/interior-page.php
woocommerce.php

index 47487c2..0fa5dd7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -32,7 +32,7 @@
                     } else { 
                         include "sections/footer.php"; 
                     } 
-                    include "sections/copyright.php";  
+                    include "sections/copyright.php";
                     ?>
                     <div class="js-off-canvas-exit"></div>
                 </div><!--/.off-canvas-content-->
index 0f3b468..2917324 100644 (file)
                         <?php get_template_part('parts/capstone-team'); ?>
                         <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
                     </div>
+            <?php } else if (is_cart() || is_checkout()) { ?>
+                <div class="small-12 medium-10 medium-centered columns">
+                    <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
+                </div>
             <?php } else { ?>
+            
                     <?php if(!is_front_page()) {
                     echo "<div class=\"small-12 medium-7 columns\">";
                     get_template_part('parts/main-content');
index c7e6b2f..8a5b774 100644 (file)
@@ -41,9 +41,9 @@
                                 <a href="<?php echo get_permalink(100); ?>" class="button">checkout</a>
                             </div>
                         </div>
-                        <div id="content-wrapper" class="row woocommerce-wrapper">                            
+                        <div id="content-wrapper" class="row woocommerce-wrapper">
                         <?php if (is_shop()) { ?>
-                            <div class="small-12 medium-7 columns left main woo-tags">
+                            <div class="small-12 medium-10 medium-centered columns main woo-tags">
                             <?php
                                     /**
                                      * woocommerce_before_main_content hook
                                     do_action( 'woocommerce_after_main_content' );
                             ?>
                             </div><!-- .main .woo-tags -->
+                            
+                            <div id="woo-sidebar" class="small-12 medium-5 columns">
+                                <?php get_sidebar(); ?>    
+                            </div>
                         <?php } else if (is_product_tag() || is_product_category()) { ?>
                             <div class="small-12 medium-7 columns left main woo-tags">
                             <?php
                                         do_action( 'woocommerce_after_main_content' );
                                 ?>
                                 </div><!-- .main .woo-tags -->
+                                <div id="woo-sidebar" class="small-12 medium-5 columns">
+                                    <?php get_sidebar(); ?>    
+                                </div>
                             <?php } else if (is_product()) { ?>
-                                <div class="small-12 medium-7 columns left main woo-single-product">
+                                <div class="small-12 medium-10 medium-centered columns main woo-single-product">
                                     <?php
                                             /**
                                              * woocommerce_before_main_content hook
                                     ?>
                                 </div><!-- main woo-single-product -->
                             <?php } ?>
-                                <div id="woo-sidebar" class="small-12 medium-5 columns">
-                                    <?php get_sidebar(); ?>    
-                                </div>
                             </div><!-- .row .content -->
                         </main>
                         <?php