Monthly Archives:: September 2020
How to Link to Module Fields to Theme Images in HubSpot Themes
Category: Code Snippets
When building HubSpot themes you often want to have default images referenced from inside your theme folder. You would think adding a relative link would work but you actually need to add it inside this hubl function to get it to work get_asset_url() Learn more about building custom modules in HubSpot. “default” : { “src” […]
How to Update Navigation Menu in HubSpot Content Staging
Category: Code Snippets
When using content staging in HubSpot you can easily test and preview design changes but the menu does not update to use the new staging domain. So you have to preview each page individually. This can be an issue when you are working on a HubSpot website rebrand and the client needs to click through […]
How Do You Get the URL Parameters and Append to Href or Src of Another Element?
Category: Code Snippets
Do you want to grab the url parameters and pass them to a button href or iframe src? This is common when you are running a paid ad campaign to a landing page that links to a form on another page. You want to track the source of the form submission by duplicating the url […]
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 […]