HubSpot Ideas

jdbower-ad

Add HTML Snippet to page editor

It would be nice to be able to add an "HTML Snippet" object to pages. This could be implemented just like any other module and allow arbitrary code to be added to a page. For my specific case, it's a JavaScript snippet from a vendor to create a form, currently I can only add it to the header (placing the form above the header visual element) or the footer (placing the form below the visual footer). Placing the snippet in the body of the page should allow for the form to be generated at the appropriate location, as well as unlock other more advanced possibilities.

0 Upvotes
1 Reply
jdbower-ad
Member

Adding a Rich Text module allows for this, however it can be improved a bit:

  1. For pure code modules it would be nice to include an <html code> placeholder text to make the module more visible and easier to edit.
  2. It's pretty impressive that code injected into the header/footer is processed in the editor, it would be nice if this were the case for the rich text module as well.

jdbowerad_0-1703169724414.png

In either case, I was able to build the page I needed so great work!