Some components need a bit of custom JavaScript to work properly. Elementor gives you a couple of easy ways to add it.

Option 1: Elementor Custom Code (recommended)

Go to WordPress Dashboard → Elementor → Custom Code. Click Add New, then paste your JavaScript. Make sure it’s wrapped in a script tag like this:

<script>

  // your JS here

</script>

Choose where it should load (usually Body End), then publish it.

You can also control where the script runs, such as:

Option 2: HTML widget

Edit the page in Elementor, add an HTML widget, and paste your script there, also wrapped in <script>...</script>.