Removed an unnecessary call to the_field in functions.php that was used for francejou...
authorLaury GvR <laury@gaslightmedia.com>
Fri, 10 Mar 2017 18:43:17 +0000 (13:43 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 10 Mar 2017 18:43:17 +0000 (13:43 -0500)
functions.php
index.php

index b50ff37..90e4e36 100644 (file)
@@ -85,14 +85,14 @@ function woo_product_tab_edits( $tabs ) {
     
 }
 
-function woo_product_inquiry_content() {
-    global $product;
-    echo do_shortcode('[gravityform id="3" title="true" description="true"]');
+add_action( 'after_setup_theme', 'woocommerce_support' );
+function woocommerce_support() {
+    add_theme_support( 'woocommerce' );
 }
 
-function woo_itinerary_content() {
+function woo_product_inquiry_content() {
     global $product;
-    echo the_field('itinerary');
+    echo do_shortcode('[gravityform id="3" title="true" description="true"]');
 }
 
 function woo_photos_content() {
index 3ee02c3..da138e9 100644 (file)
--- a/index.php
+++ b/index.php
                 
             </div>
             <div class="row">
-            
-                
                 <div id="main-content" class="small-12 columns">
-                        <?php if(have_posts()) : while(have_posts()): the_post();?>
-                        <?php the_content();?>
-                        <?php endwhile; else:?>
-                        <p><?php _e('Sorry, no results found.');?></p>
-                        <?php endif;?>
+                    <?php if(have_posts()) : while(have_posts()): the_post();?>
+                    <?php the_content();?>
+                    <?php endwhile; else:?>
+                    <p><?php _e('Sorry, no results found.');?></p>
+                    <?php endif;?>
                 </div>
             </div>
               <?php if (is_page(101)) {