Home › Forums › Support › Embed Of A Form In Javascript This topic has 7 replies, 2 voices, and was last updated 3 years, 6 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts April 3, 2022 at 3:09 pm #2176841 Martin Dear support team I want to embed a form in different parts of the site that is in javascript. If I add it as an Element, I cannot assign it to its destination with a shortcode. It cannot be added as HTML code as WordPress will not depict it. The classic mode does not work either for this. So I would like to know how can we embed a javascript form in GP in an area I decide. I have Generate Blocks Pro Regards, Martin April 3, 2022 at 3:55 pm #2176852 LeoStaff Customer Support Hi Martin, I’m not sure if I fully understand the requirement. How would you normally do it in a Twenty series WP theme environment? April 3, 2022 at 4:12 pm #2176868 Martin Hello, thank you for coming back What is a “Twenty series WP theme environment”? The requirement is to embed a javascript form in GP Premium. How to do it? Regards, Martin April 3, 2022 at 4:14 pm #2176871 LeoStaff Customer Support Like how is the form embedded using a Twenty Twenty One? Sounds like you are looking to add it directly in the editor and this is not something GeneratePress (or any themes) can control. Do you have any instructions on how to embed this form? April 3, 2022 at 4:43 pm #2176882 Martin Ah, ok Leo. It is an IFrame. If I could embed an IFrame in a block, that would be fine The affiliate network provides us with these IFrames to embed in the pages. I thought this was easy because I see many WP sites with forms and javascript functionalities. Thank you, Martin April 3, 2022 at 4:48 pm #2176886 LeoStaff Customer Support The HTML block should work for iFrame. April 3, 2022 at 6:18 pm #2176939 Martin Thank you have a nice day! Martin April 3, 2022 at 6:21 pm #2176943 LeoStaff Customer Support No problem 🙂 The embed block should work as well: https://www.wpbeginner.com/wp-tutorials/how-to-easily-embed-iframe-code-in-wordpress/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In