Skip to content
How to Use HubSpot: Copy as HubL

How to Use HubSpot: Copy as HubL


Dustin Brackett
May 12, 2022

Get more out of your HubSpot Investment!

Get a HubSpot Audit
Read Time:
Don't have time? Download Now as a PDF

HubSpot's CMS Hub has quickly become one of the most popular content management systems in the world because of the no-compromise approach. They didn't compromise for developers or marketers; they gave them all the tools they needed to be successful. 

One of the most useful new features that has been rolled out is the ability to Copy as HubL, which changes the game for developers working to create templates quickly.

This blog post is part of our How to Use HubSpot series focused on helping our readers get the most out of their HubSpot portal with tips and tricks on best practices within HubSpot. Some features and tools can be hidden or hard to find. We're uncovering those tools. Follow along and catch all of our HubSpot tips here.

For those that aren't HubSpot developers, HubL is HubSpot's coding language. It is unique to HubSpot as it also incorporates the ability to reference CRM data in your templates, modules, sections, partials, and more.

The ability to Copy as HubL gives developers an easy way to build a page section, copy the HubL code and implement it into a coded template on the backend through Design Tools. When creating templates or updating templates, this can be a HUGE time saver — especially if your modules or sections are very feature/customization heavy.

Here's how you can do it:

  • The first thing you have to do is turn on Developer Mode.
  • Open up the page that you want to copy a section's HubL from and go to edit the page
  • In the editor URL, add ?developerMode=true to the end and hit Enter.
    • Note: the "M" does need to be capitalized.
  • When you're in Developer Mode, you will see the top bar on the page turn from navy blue to light blue.
    Screen Shot 2022-05-05 at 9.52.41 AM
    Screen Shot 2022-05-05 at 9.52.58 AM
  • Now that you're in Developer Mode scroll to the section, row, column, or module you want to copy.
  • Hover over the element that you want to copy and click the down arrow.
  • Click {{ Copy as HubL.
    Screen Shot 2022-05-05 at 9.54.30 AM
  • Now you have copied the HubL code for that element and can paste it right into a coded template.
  • You can do this for any section, row, column, or module on any page using the new drag-and-drop builder.

 

Now instead of having to code out every single line for a template, you can simply paste it in. It's saved our development team countless hours in development time, and hopefully, it saves you some as well!

Check back regularly to find other tips on how to use HubSpot

Not getting the most out of your HubSpot investment? Through our HubSpot Audit, our team will evaluate your HubSpot portal usage and make recommendations on how you can get more out of your portal. HubSpot should be working for you, is it?

HubSpot Audit

Latest Blog Posts

How to Fix Dirty CRM Data Without Starting Over
Mar 25, 2026

How to Fix Dirty CRM Data Without Starting Over

Desiree Landa
Data Management, HubSpot Data Hub, HubSpot AI

I'm currently enrolled in HubSpot's AI Bootcamp and the number one lesson that keeps coming up is simple: In order for AI tools to work you have to clean up your dirty data. Dirty data in means dirty data out. AI is powerful. AI is fast. AI cannot...

Mar 18, 2026

Why We’re Starting to Build HubSpot Websites with React (and Why It Matters for Growth Teams)

Mallory Fetchu
Attracting Website Traffic, Development, CMS Hub

For a long time, building a website in HubSpot meant working within a fairly traditional CMS model. You could absolutely build strong, high-converting sites, but there were real limitations once companies started scaling.

How to Build a Full-Funnel RevOps Strategy in HubSpot
Mar 9, 2026

How to Build a Full-Funnel RevOps Strategy in HubSpot

Dustin Brackett
HubSpot, RevOps

For many organizations, HubSpot begins as a marketing platform.

A company adopts it to send newsletters, capture leads from forms, or automate follow-up emails. Over time, sales starts using the CRM. Customer success may adopt the service tools....