WPCrafter Community

Find answers, ask questions, and connect with our
WordPress community around the world.

Home Community General Questions How to add Script in Elementor

  • How to add Script in Elementor

     Adam updated 5 months, 4 weeks ago 3 Members · 11 Posts
  • Anonymous

    Guest
    May 4, 2018 at 10:23 pm

    How can I add  script to my Elementor Page?

    I can not seem to find out.

    Thank you in advance

  • Adam

    Administrator
    May 9, 2018 at 3:19 pm

    Have you tried adding it to the HTML element? That is how I usually will add scripts to an Elementor page.
    Also if your theme has a hooks module, you can do it that ways as well.

  • Mark

    Member
    May 15, 2018 at 8:11 pm

    Hi Adam
    Thanks, that's just what I was looking for also. Only question now is, how do I center the result of that script (which calls a button linking to a third party). I don't have any of the usual alignment options.
    Many thanks

  • Mark

    Member
    May 15, 2018 at 8:23 pm

    Disregard, sorry I found it. 🙂

  • Anonymous

    Guest
    Nov 23, 2018 at 5:24 pm

    Care to share how you aligned  your content Mark?.  Thanks

  • Anonymous

    Guest
    Dec 20, 2018 at 8:58 am

    Yes, this fixed it. It does seem to load slower now, but maybe that's just me. 

  • Anonymous

    Guest
    Jan 20, 2019 at 11:41 am
  • Fred

    Member
    Jan 21, 2019 at 11:54 am

    When I place <script type=”text/javascript”>{affiliate image and tracking code}</script> into the Elementor HTML block, the editor breaks.  It pulls the image in but that is all I see.  All the post/page content disappears.  I have successfully added this same code to my widget and it renders fine but I cannot place the same code in the body of the webpage.  The JS is dynamic and it generates a URL and image.   I am using Astra as my theme.
    Is there another work around??

  • Anonymous

    Guest
    Jun 17, 2019 at 5:33 pm

    Fred Aebli – was this question ever answered, I am having this same problem

  • Anonymous

    Guest
    Jun 25, 2019 at 4:19 pm

    Hi Fred & Tom, was this question answered. I too am having the exact same problem. (Different theme, tho.)

    • Adam

      Administrator
      Jul 28, 2019 at 10:57 am

      If your theme has a hooks feature, you can add it that way. For example, I use the Astra theme which allows me to add a script to any content on the site.

Log in to reply.

Original Post
0 of 0 posts June 2018
Now

Stay Up To Date

Enter your name and email for the lates news, updates, and tutorials.