From 3fb217f3fe347c797e645be9f7ca3be4fec11501 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 10 Mar 2017 13:43:17 -0500 Subject: [PATCH] Removed an unnecessary call to the_field in functions.php that was used for francejourneys, the theme this theme is based on. This call was breaking the site with a 500 internal server error --- functions.php | 10 +++++----- index.php | 12 +++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/functions.php b/functions.php index b50ff37..90e4e36 100644 --- a/functions.php +++ b/functions.php @@ -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() { diff --git a/index.php b/index.php index 3ee02c3..da138e9 100644 --- a/index.php +++ b/index.php @@ -15,14 +15,12 @@
- -
- - - -

- + + + +

+