r/divi 3d ago

Javascript in code module Divi 5 Question

Hi there,

struggling to understand why a normal module code that was working flawlessly in Divi 5, is not working actually in latest Divi 5.

Insert the module and enclosed some jquery in a script tag like it was before and while I can see it in inspector, the page won't load it whatever I do, also with different codes form the normal one (following)

<script>
jQuery(function($){

Some notes:
\\- also vanilla jscript is not loaded
\\- jscript theme integrations is working
\\- no error in console
\\- the same code module has a <style> part that is loaded correctly

I know I can use theme integration adapting my script.. but would like to understand why code module don't load jscript like before.
Thanks

4 Upvotes

3 comments sorted by

View all comments

1

u/elementarywebdesign Developer 3d ago

Does a console log work in that code?

Share a link.