How to Fix HubSpot Website Your Connection is Not Private or Your Page is Unavailable Not Found – redirect Apex non www
Category: Common Questions
HubSpot requires using CNAME to point a domain to their server using a subdomain. This means you still have an A record to worry about. The www in your www.yourdomain.com is a subdomain and not a root domain that does not have the www. It is the same as blog.yourdomain.com or mail.yourdomain.com. In order to fix […]
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 […]
Media Query Sass Mixin [code snippet]
Category: Code Snippets
The sass mixin below has default variable values for common breakpoints. But this mixin also allows you to write a custom value if needed.
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 […]
Console Log JavaScript Objects to See Data Structure [code snippet]
Category: Code Snippets
When working with JavaScript objects and arrays it is often tricky to reference the correct index of the data you need. These console functions allow you to visually see the structure so that job is a bit easier. Writes your object as a data table and also dropdown menu console.table($yourObject); Writes your object as a […]
Uncaught TypeError: Cannot read property ‘msie’ of undefined when upgrading to WordPress 5.5
Category: Code Snippets
Recently when upgrading an older site to WordPress 5.5 I noticed a javascript error in the console that read Uncaught TypeError: Cannot read property ‘msie’ of undefined. If you have a plugin or script that relied on an older version of jQuery it will no longer work because WordPress updated their jQuery version. In order […]