How to Have a HubSpot Menu Load the Default Menu When Transferring to Another Account
Category: Common Questions
Problem: When transferring a HubSpot theme or template file to another portal global module’s menu disappears. The code snippet below sets the default menu tag to pull a default if it is not selected. {% set menu = module.menu is truthy ? menu(module.menu) : menu(‘default’) %} {% menu “menu” %}
How Do You Convert Text to Outline Shapes in Adobe XD?
Category: Common Questions
If you are wanting to export a text based graphic icon or text symbol it is a good idea to convert it to outlines before exporting. If you don’t, when you embed the svg it will be looking for the web font being used and not look right. Select the text box containing the graphic […]
HubSpot Themes vs Templates – What is the Difference?
Category: Common Questions
Previously it was possible to download HubSpot template packs from the HubSpot marketplace. These were a collection of landing page, website page, blog, and email templates. The downside of these packs is they did not share any unified settings and they were not very portable between accounts. Now a group of templates, custom modules, and […]
Throttle or Delay JavaScript Functions When Window is Resized [code snippet]
Category: Code Snippets
Underscore.js has a popular method for throttling and debouncing functions to prevent them from firing multiple times when a window is resized. I found this delay function that works for times when you don’t need to load the entire underscore library to achieve a similar effect.
HubSpot onFormSubmit and Other JavaScript Events
Category: Code Snippets
When embedding a HubSpot form using the JavaScript script tag it is common to want to apply some of your own functions after the form has submitted. This can be used for adding conversion pixels for Google Ads and Facebook after the form is submitted. Another use case is modifying the form markup after the […]
10+ Best HubSpot CMS Developers & Web Designers USA (2026)
Category: Articles
Are you looking to hire a freelance HubSpot website developer or a dedicated HubSpot website designer? Below is a curated directory of independent HubSpot designers and developers working in the USA and Canada, organized by whether they handle design and code together or focus purely on development. Hiring an independent HubSpot web developer is ideal […]
Web Accessibility Evaluation Tool Code Snippets
Category: Code Snippets
Below are some code snippets to help resolve accessibility errors found using the WAVE accessibility evaluation tool.
25+ Questions to Ask When Redesigning Your Business Website
Category: Common Questions
A website created by a page builder service like Godaddy, Wix, WordPress, or Squarespace are a dime a dozen. But a lead-generating website is a rare jewel. Strategically built websites help you generate new business and communicate your brand story. Below is a list of common questions to ask before redesigning your business website. List […]
How to Change Favicon with JavaScript
Category: Code Snippets
This code comes in handy when you don’t have access to the head of the page and need to change the favicon. (function() { var link = document.querySelector(“link[rel*=’icon’]”) || document.createElement(‘link’); link.type = ‘image/x-icon’; link.rel = ‘shortcut icon’; link.href = ‘https://yourdomain.com/favicon.ico’; document.getElementsByTagName(‘head’)[0].appendChild(link); })();
How to Add Retina Images to HubSpot Email and Page Templates
Category: Code Snippets
HubSpot CMS handles responsive images by default by creating different image sizes for different screen widths (using srcset). But with retina display images, you want to load higher resolution images and scale them down to 100%. Thankfully you can add ?noresize to the end of your image source to disable this dynamic resizing. In the […]