Reply To: JavaScript Error preventing Gravity Form function

Home Forums WordPress Themes – Premium Celestial (Celestial Reloaded) JavaScript Error preventing Gravity Form function Reply To: JavaScript Error preventing Gravity Form function

#22299
Sushil Adhikari
Moderator

Hi there,

If that file is making problem on submitting form, then you can try this followiing steps:

1> There in st-bootstrap.js you have used .tooltip() and .popover() which is bootstrap plugin. So you need to load bootstrap.min.js of bootstrap before that file: @SEE Bootstrap javascript

wp_enqueue_script('celestial-bootstrap-js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', array('jquery'), '2.2.2', true);

Then only you need to enqueue st-bootstrap.js file providing jquery and celestial-bootstrap-js as dependency:
@SEE How to use wp_enqueue_script() functions?

wp_enqueue_script('celestial-bootstrap-st', get_template_directory_uri() . '/js/celestial-bootstrap-st.js', array('jquery','celestial-bootstrap-js' ), '2.2.2', true); 

let us know how it will goes.

Thanks