Browse Source

fix gform contact

windhamdavid 1 year ago
parent
commit
1b2763bbfa
2 changed files with 2 additions and 17 deletions
  1. 1 1
      header.php
  2. 1 16
      inc/form.php

+ 1 - 1
header.php

@@ -22,7 +22,7 @@
 		</div>
 	</div>
 </header>
-<div class="offcanvas show offcanvas-end text-bg-blue" tabindex="-1" id="offcanvasNav" aria-labelledby="offcanvasNavLabel">
+<div class="offcanvas offcanvas-end text-bg-blue" tabindex="-1" id="offcanvasNav" aria-labelledby="offcanvasNavLabel">
   <nav class="navmenu navmenu-default p-3 fs-5" role="navigation">
     <ul class="nav nav-stacked list-group">
       <li class="list-group-item"><a href="<?php echo home_url( '/' ); ?>"><span class="fa fa-home fa-fw"></span> Home</a></li>

+ 1 - 16
inc/form.php

@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 
 add_filter('gform_field_content', 'boot_gf', 10, 5);
@@ -23,21 +23,6 @@ function boot_gf ($content, $field, $value, $lead_id, $form_id) {
 	return $content;
 }
 
-add_filter("gform_init_scripts_footer", "init_gscripts");
-function init_gscripts() {
-	return true;
-}
-
-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( 'gform_datepicker_init' );
-		//wp_deregister_script( 'gforms_stripe_frontend' );	
-	}
-}
-
 add_filter('gform_validation_message', 'change_validation_message', 10, 2);
 function change_validation_message($message, $form)
 {