windhamdavid 5 years ago
parent
commit
6253535143
5 changed files with 12 additions and 16 deletions
  1. 0 1
      css/form.css
  2. 1 0
      functions.php
  3. 10 8
      inc/tweaks.php
  4. 0 6
      js/form.js
  5. 1 1
      page-contact.php

+ 0 - 1
css/form.css

@@ -660,7 +660,6 @@ html>body .entry ul,
 	font-family: "Lucida Grande", "Lucida Sans", "Lucida Sans Unicode", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
 	padding: 10px 20px 10px 45px;
 	min-height: 25px;
-	background-image: url(../images/stopbanner.png);
 	background-repeat: no-repeat;
 	background-position: 0 0;
 	background-color: #790000;

+ 1 - 0
functions.php

@@ -128,6 +128,7 @@ function dw_scripts() {
 
 add_action('wp_footer', 'dw_html5shim', 21);
 function dw_html5shim() { ?>
+
 <!--[if lt IE 9]>
 	<script src="<?php echo get_template_directory_uri() . '/js/html5shiv.min.js'?>"></script>
 <![endif]-->

+ 10 - 8
inc/tweaks.php

@@ -58,8 +58,8 @@ function dw_embed_oembed_html( $html ) {
 }
 
 
-add_filter("gform_field_content", "bootstrap_gravityforms", 10, 5);
-function bootstrap_gravityforms($content, $field, $value, $lead_id, $form_id){
+add_filter("gform_field_content", "boot_gravity", 10, 5);
+function boot_gravity($content, $field, $value, $lead_id, $form_id){
 if($field["type"] != 'hidden' && $field["type"] != 'list' && $field["type"] != 'multiselect' && $field["type"] != 'checkbox' && $field["type"] != 'fileupload' && $field["type"] != 'date' && $field["type"] != 'html' && $field["type"] != 'address') {
 		$content = str_replace('class=\'medium', 'class=\'form-control medium', $content);
 	}
@@ -85,12 +85,14 @@ function init_gscripts() {
 	return true;
 }
 
-add_action( 'wp_print_scripts', 'dw_deregister_javascript', 100 );
-function dw_deregister_javascript() {
-	wp_deregister_script( 'gform_conditional_logic' );
-	//wp_deregister_script( 'gform_json' );
-	wp_deregister_script( 'gforms_stripe_frontend' );
-	//wp_deregister_script( 'gform_gravityforms' );
+add_action( 'wp_print_scripts', 'dw_deregister_gf_js', 100 );
+function dw_deregister_gf_js() {
+	if( is_page( 'contact' ) ) {
+		wp_deregister_script( 'gform_conditional_logic' );
+		wp_deregister_script( 'gform_json' );
+		wp_deregister_script( 'gforms_stripe_frontend' );	
+	}
 }
 
+
 ?>

File diff suppressed because it is too large
+ 0 - 6
js/form.js


+ 1 - 1
page-contact.php

@@ -44,5 +44,5 @@
 			</div>
 		</div>
 	</div>
-	
+
 <?php get_footer(); ?>