ArticlesHubSpot websites

How to build HubSpot modules your marketing team can’t break

A module is only as good as the page a marketer builds with it on a Friday afternoon. These are the rules we follow so that page still looks right.

What makes a HubSpot module easy for marketers to use?

Fields named in plain language, choices instead of free values wherever the design has rules, limits on how many items a repeater takes, help text on anything that isn’t obvious, and defaults that already look right. Then test it with the longest, shortest and emptiest content you can think of.

Name fields after what they do

The person editing the page sees the field labels, not your code. “Heading”, “Short intro (one or two sentences)” and “Button text” are better labels than title_text, body_1 and cta_label. Group related fields, put them in the order they appear on the page, and hide anything technical in a group of its own.

HubSpot lets every field carry help text. Use it for anything that isn’t obvious: the recommended image size, where the text appears, what happens if a field is left empty.

Give choices, not free values

Every free color picker, font size or spacing value is a way to drift away from the brand. Where the design has rules, turn them into choices:

Colors and fonts belong in the theme settings, so they change everywhere at once. A module that hardcodes its own blue is the one that’s still the old blue after a rebrand.

Set limits the design can live with

Repeater fields in HubSpot can have a minimum and a maximum number of items. If a card row is designed for three to six cards, set those limits. A row of eleven cards is not a design choice anyone made on purpose.

The same goes for text. If a heading is designed for one line, say so in the help text, and make sure the layout still holds when someone ignores it.

Use display conditions to show fields only when they apply. If “Show a button” is off, the button text and link fields don’t need to be visible.

Make the defaults look right

When a marketer drags a module onto a page, it should already look finished, with realistic example content rather than lorem ipsum. Good defaults teach how the module is meant to be used, and they make it obvious which fields still need real content.

Build in accessibility and SEO

Test with the worst content, not the demo content

Before a module ships, fill it with content nobody planned for:

If the module still looks intentional in all of these, it will survive real use. If it doesn’t, fix the layout or set a limit, rather than hoping nobody tries it.

Write it down

A one-page guide per template, showing which modules go where and what each one is for, saves more support questions than any amount of clever code. Keep it next to the theme, and update it when the modules change.

Questions we get

Should every module have style options?

Only the ones the design needs. Each extra color picker or spacing control is a way to drift off-brand. Offer a few named variants instead, such as Light, Dark and Brand.

How many modules should a theme have?

Fewer than you think. A library of 20 to 30 well-made modules covers most B2B marketing sites. Too many, and people can’t find the right one, so they misuse the wrong one.

Can you improve modules on an existing site?

Yes. We often rebuild a client’s most-used modules without changing how existing pages look, then retire the old ones over time.

Want help with this?

We build, migrate and extend HubSpot sites for marketing teams and agencies: one module or the whole site. See Web design & development, or tell us what you’re working on and we’ll reply within one business day.