Support » Plugin: Elementor Page Builder » How to add a javascript snippet to an Elementor page

  • Resolved mfeerer


    Hi. I am using Mailerlite for pop-up subscribe forms on my site. To activate an html link on my page that when clicked will show the pop-up form, Mailerlite instructs that I need to add a javascript snippet to my page…

    var ml_webform_621928 = ml_account(‘webforms’, ‘921928’, ‘g6k8y6’, ‘load’);
    ml_webform_621928(‘animation’, ‘fadeIn’);

    How do I do that in Elementor? Thanks.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Ben Pines


    We currently don’t offer support for such a form popup

    It’s actually NOT resolved. Answering & Resolving are two different things.

    agree @snack8290

    I’d like to use javascript from logiforms so insert a form. Can’t do it as Javascript is not supported in Elementor. A bit bummed, to say the least as Elementor can do most things.

    I’ve asked the developer in the past with no much of an answer either.

    I was having the same issue and was searching for a way to do it and found this thread.
    Seems it’s still not supported to as a workaround I did the following:

    -In word press widgets menu
    -Add text widget to default side bar (which is in my case empty as i’m not using it)
    -Add the code in the text widget and save
    -On the page where you need to add the javascript add a sidebar element widget and select the default sidebar (in my case)

    Hope this helps



    @tolba59 it helped me!
    It did work and I was searching for some time already for a solution.
    Thank you for the idea

    You can add at the end of your template an HTML element and insert <script>your javascript code</script> on it.



    Just confirming that adding an Elementor HTML element with a <script> tag inside of it works. Yay!

    You can test it with a script element like <script>console.log('Hello, world!'</script>, which will display “Hello, world!” in your browser developer tools console window.

    Hi Guys, I also had the same issue and found this thread too. My issue is to remove google recaptcha v2’s border which I cant remove from elementors custom css box even I put !important.

    I tried @pacotole ‘s solution and it really worked. This thread saved my day. Yay!

    I’ll be trying it now to remove via javascript/jquery.
    I hope it’ll work now.

    Thanks everyone.

    • This reply was modified 7 months, 3 weeks ago by  rpafurong.

    Hi lovely people,

    I don’t know if the javascript code below is correct because I followed all the methods stated above for Elementor pages, but it still won’t work.

    <script type=”text/javascript”>
    ccHost = ((“https:” == document.location.protocol) ? “https://www.” : “http://www.”);
    document.write(unescape(“%3Cscript src='” + ccHost + “’ type=’text/javascript’%3E%3C/script%3E”));

    Can someone kindly help me advise me on what I may have missed out.
    Thanks a bunch.

    @jaynom Have you tried pasting it into Inspect > Console in your browser to see if the javascript actually works?

    Thanks so much Spandipants.
    Just did, seems the error is from within the code itself.

    I have the same problem
    When I add in text or HTML the following error appears when saving:
    Server Error (403 Forbidden).

    Can anyone help?

    If you are getting the Server Error 403 Forbidden when trying to save an Elementor page with code on it just disable your Wordfence first and then save — that works.

    How we can add source tag of amazon store on our website?

    thanks @pacotole, this works!
    Add HTML page and add:

    jQuery( function( $ ) {
    console.log(‘code from js’);

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.