-
AuthorPosts
-
March 17, 2015 at 7:49 pm #413188
I’ve disabled all other plugins, and when the Twenty Fifteen theme is activated, everything works fine. But when I activate my Enfold Child Theme, Gravity Forms starts having some weird issues:
1) The active/inactive sliders that appear per form in Forms > Forms are always disabled, and when I click any one of them, nothing happens. It’s supposed to toggle active/inactive.
2) If I click “Enable Conditional Logic” when viewing a field (Advanced tab), no fields appear below it. Normally, it loads some dropdown lists via AJAX so I can actually define condition logic fields and values. Reproducible in field 14 of form 4. Checking that checkbox should make fields appear right below, for me to modify the conditions.
Why is this happening? I’m using: Gravity Forms 1.9.4, WordPress 4.1.1, and Google Chrome Version 41.0.2272.89 m. I also updated the base “enfold” folder an hour ago to the latest off ThemeForest, and made sure to copy the new avia.js, and re-applied my changes in my child theme. So technically, all things are up to date. Attached you will find admin credentials so you can poke and prod as you see fit.
Thanks,
Matt Refghi
- This topic was modified 9 years, 7 months ago by champlainconted. Reason: corrected field ID
March 17, 2015 at 10:01 pm #413259Hey champlainconted!
I think the problem is in your child theme. Try activating just Enfold to see if that fixes the javascript error your getting.
Best regards,
ElliottMarch 19, 2015 at 6:00 pm #414694Yes, that fixes it… my modification to “avia.js” in the child theme is actually fairly minor. I just changed “el_height/2” to “el_height/1.25” in two locations. Any idea what might be causing a JavaScript error if my child theme isn’t actually messing up the JavaScript?
Here’s my functions.php, but it seems innocent enough. Maybe that 100 needs to change to something else? Perhaps Gravity Forms’ JS should load after or before or something?
add_theme_support('avia_template_builder_custom_css'); add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; } function wp_change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
March 20, 2015 at 5:43 pm #415428Hey!
I’m not sure. Are you just trying to change the height of the menu items?
Cheers!
Elliott- This reply was modified 9 years, 7 months ago by Elliott.
March 25, 2015 at 1:49 am #417508Yeah, just trying to alter the height of the logo when you resize, as per this discussion. However, to get around the issue temporarily, I deleted all traces of this modified JS from my child theme.
Then, I noticed another effect: even thought the JS file was deleted, and only style.css and functions.php (code for functions can be seen above) remained, I saw a new problem. This shortcode:
[gravityform id="4" title="true" description="false" ajax="false"]
Didn’t actually make the form appear on the page. The page is blank, white, empty. Pure Enfold worked, but not my child theme… despite the lack of the JS. Turns out I had to comment out this particular line in functions.php, even though my modified avia.js no longer remained.
add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
Made sense, of course, I should have done that when I deleted the file originally. Just figured I’d share my solution here in case anyone else encounters the same behavior.March 25, 2015 at 1:51 am #417510So, it seems I managed to resolve this, thanks for the assistance! I’ll try restore the shrink-to-custom-size modification later on, higher priority tasks right now.
Thanks,
Matt
-
AuthorPosts
- The topic ‘Gravity Forms experiences problems when Enfold Child Theme is activated.’ is closed to new replies.