Skip to content

Commit

Permalink
Fix - Custom JS not working on certain themes
Browse files Browse the repository at this point in the history
  • Loading branch information
salimshrestha98 committed Jul 12, 2023
1 parent 38fd99a commit c70b1c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion includes/shortcodes/class-evf-shortcode-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,17 @@ function () use ( $custom_css, $form_id ) {
})( jQuery )',
$custom_js
);
wp_add_inline_script( 'everest-forms', $custom_js );

wp_register_script(
'evf-custom',
'',
array( 'jquery' ),
EVF_VERSION,
true
);

wp_add_inline_script( 'evf-custom', $custom_js );
wp_enqueue_script( 'evf-custom' );
}
}
}
Expand Down

0 comments on commit c70b1c4

Please sign in to comment.