How do you get to the HTML view in HubSpot?

How do you get to the HTML view in HubSpot?

Hi @terrysartor

It depends on which aspect of the email tool you are using and what you need to achieve, but maybe these will help?:

Edit content in a rich text module: https://knowledge.hubspot.com/cos-pages-editor/how-to-use-the-rich-text-module (To access the source code of the module, click the Advanced dropdown menu, then select Source code)

Build a custom-coded template: Build a custom coded template

Access the HTML of an email you sent from HubSpot: View a marketing email's HTML

Thanks Matthew! I appreciate it!

Terry

Hi Matt, I’m thinking the “advanced” options menu has disappeared with the new version of the email editor, right? Where can get get the old “source code” option now?

Hi @jsantafe
If you are using a rich text module in your email you should still be able to access the source code of that text module in both the drag and custom email builder.

Drag and Drop:

Custom

Hi Matthew,

We’re coming up against a problem where altering the source code has been suggested as the solution. However, as I understand it, this modification needs to be applied to the email as a whole, not a single rich-text module.
Any ideas how we can deal with this?

Hi @SGross27
If you need access to modify all HTML elements of your email template you may need to create the template as a coded file. If you are using a drag and drop email template you could perhaps copy the HTML of that template and add it to a new coded file and modify from there. Here are some more resources on working with custom coded templates:
Build a custom coded template
Email template markup

Making templates render correctly across a range of email clients can be tricky so if you need assistance this service might help.