Pro Theme - custom js

Hello,
We want to use a JS code. But when we want to apply it in the pro editor, nothing happens.

Since we have already used the code for custom post types, we know that it works.

Now my question: is there a special function that needs to be done if you like to trigger custom js or is there’s a hook in the pro builder which can be used to reload some of the js functions that are used in custom scripts?

Thanks a lot!

Hi @l_eckardt,

Thanks for reaching out.
You can add the custom JavaScript code into the Theme Options > JS, which can be used as a Global JS. You can also add the Page Specific JS, which will work only for those s pages where it added. If you want to add any code using any file, please use the wp_enqueue_script hook. Please find the detailed documentation article below.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.