• Michael Garcia

    (@progressionstudios)


    I’m adding some additional widgets to the page builder and want to include custom javascript. I found the API for enqueueing javascript however ran into issues: https://github.com/pojome/elementor/blob/develop/docs/content/hooks/php-hooks.md#frontend-actions

    The code works great when I view the page on the front-end, however when I open up the Elementor editor the javascript doesn’t load. Let me know if this is a bug OR if I should be enqueuing using a different function.

    Even better, is there code to enqueue JS per widget/element? I tried using wp_enqueue_script within the protected function render() {} which worked on the front-end but again didn’t work when viewing using the elementor editor.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Possible bug with elementor/frontend/before_enqueue_scripts’ is closed to new replies.