diff --git a/inc/customizer/assets/js/illdy-customizer.js b/inc/customizer/assets/js/illdy-customizer.js index 8736ce5..91439ca 100644 --- a/inc/customizer/assets/js/illdy-customizer.js +++ b/inc/customizer/assets/js/illdy-customizer.js @@ -831,8 +831,6 @@ liveObj.values.illdy_jumbotron_first_border_color = illdy_hexToRgbA( color, '1' ); } - console.log(liveObj); - wp.customize.previewer.send('update-section-css', liveObj); } @@ -861,7 +859,6 @@ _.each( sections.fullwidth, function( setting ){ liveObj.values[setting] = wp.customize(setting)(); }); - console.log('in fws'); wp.customize.previewer.send('update-section-css', liveObj); } @@ -982,9 +979,9 @@ jQuery(document).ready(function(){ type: "GET", data: { action: 'illdy_dismiss_required_action', id: id, todo: action }, dataType: "html", - url: illdyWelcomeScreenObject.ajaxurl, + url: IlldyCustomizer.ajax_url, beforeSend: function (data, settings) { - jQuery('#' + id).parent().append('
'); + jQuery('#' + id).parent().append('
'); }, success: function (data) { var container = jQuery('#' + data).parent().parent(); @@ -1018,9 +1015,9 @@ jQuery(document).ready(function(){ type: "GET", data: { action: 'illdy_dismiss_recommended_plugins', id: id, todo: action }, dataType: "html", - url: illdyWelcomeScreenObject.ajaxurl, + url: IlldyCustomizer.ajax_url, beforeSend: function (data, settings) { - jQuery('#' + id).parent().append('
'); + jQuery('#' + id).parent().append('
'); }, success: function (data) { var container = jQuery('#' + data).parent().parent(); diff --git a/inc/customizer/customizer.php b/inc/customizer/customizer.php index 4561967..0917797 100755 --- a/inc/customizer/customizer.php +++ b/inc/customizer/customizer.php @@ -239,6 +239,7 @@ function illdy_customizer_js_load() { $IlldyCustomizer = array(); $IlldyCustomizer['sections'] = illdy_get_sections_position(); $IlldyCustomizer['ajax_url'] = admin_url( 'admin-ajax.php' ); + $IlldyCustomizer['template_directory'] = get_template_directory_uri(); wp_localize_script( 'illdy-customizer', 'IlldyCustomizer', $IlldyCustomizer ); diff --git a/sections/front-page-contact-us.php b/sections/front-page-contact-us.php index e468e9c..74c4ef5 100755 --- a/sections/front-page-contact-us.php +++ b/sections/front-page-contact-us.php @@ -23,7 +23,7 @@ $address2 = get_theme_mod( 'illdy_address2', __( 'London, UK', 'illdy' ) ); $general_title = get_theme_mod( 'illdy_contact_us_general_title', __( 'Contact us', 'illdy' ) ); $general_entry = get_theme_mod( 'illdy_contact_us_entry', __( 'And we will get in touch as soon as possible.', 'illdy' ) ); - $general_contact_form_7 = get_theme_mod( 'illdy_contact_us_contact_form_7' ); + $general_contact_form_7 = get_theme_mod( 'illdy_contact_us_general_contact_form_7' ); $general_address_title = get_theme_mod( 'illdy_contact_us_general_address_title', __( 'Address', 'illdy' ) ); $customer_support_title = get_theme_mod( 'illdy_contact_us_general_customer_support_title', __( 'Customer Support', 'illdy' ) ); } else { @@ -41,7 +41,7 @@ $address2 = get_theme_mod( 'illdy_address2' ); $general_title = get_theme_mod( 'illdy_contact_us_general_title' ); $general_entry = get_theme_mod( 'illdy_contact_us_entry' ); - $general_contact_form_7 = get_theme_mod( 'illdy_contact_us_contact_form_7' ); + $general_contact_form_7 = get_theme_mod( 'illdy_contact_us_general_contact_form_7' ); $general_address_title = get_theme_mod( 'illdy_contact_us_general_address_title' ); $customer_support_title = get_theme_mod( 'illdy_contact_us_general_customer_support_title' ); }