QuestionsHow to add Script in Elementor
asked 9 months ago

How can I add  script to my Elementor Page?

I can not seem to find out.

Thank you in advance

9 Answers
Adam @ WPCrafter Staff answered 9 months ago

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 answered 8 months ago

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 answered 8 months ago

Disregard, sorry I found it. 🙂

Jeremie answered 2 months ago

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

Jeremie answered 2 months ago

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

Alicia answered 1 month ago

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

Alicia answered 1 month ago

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

Muhmd answered 2 days ago
Fred Aebli answered 21 hours ago

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??

Your Answer
4 + 11 =

Accepted file types: png, jpg, pdf

Add another file