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

10 Signs Your HubSpot Setup Is Failing (+ Fixes)
Apr 14, 2026

10 Signs Your HubSpot Setup Is Failing (+ Fixes)

Dustin Brackett
HubSpot

If your HubSpot portal isn’t driving predictable growth, the problem usually isn’t the platform. It’s the implementation. This checklist breaks down the most common failure signals in HubSpot setups used by growing B2B companies, along with the...

What HubSpot’s Buyer Intent Tool Can (and Can’t) Actually Tell You
Apr 8, 2026

What HubSpot’s Buyer Intent Tool Can (and Can’t) Actually Tell You

Desiree Landa
HubSpot, AI

HubSpot’s Buyer Intent tool promises something every revenue team wants: clarity.It shows which companies are researching your solutions and signaling interest before they ever fill out a form. For teams trying to prioritize the right accounts, that...

The Shift From Lead Generation to Revenue Generation
Apr 1, 2026

The Shift From Lead Generation to Revenue Generation

Desiree Landa
Lead Generation, RevOps

If you are in marketing, sales or revops... you've heard the whispers of a growing discussion surrounding one simple question: What should marketing actually be responsible for? For years, the answer seemed clear. Marketing generated leads. Sales...