HubSpot Custom Module Boilerplate Code Snippet


HubSpot Custom Module Boilerplate Code Snippet

Below is a some boilerplate code to use when creating a custom module inside HubSpot CMS.

<div class="module-class" id="{{name}}">
  <div class="row-fluid">

  </div>  
</div>

{% require_css %}
<style>
  {% scope_css %}
  {% end_scope_css %}
  
</style>
{% end_require_css %}

{% require_js %}
<script>
window.addEventListener("load", (event) => {

});
</script>
{% end_require_js %}

Written by: Jake Lett
Jake Lett is a B2B marketing consultant with over 15 years of experience in the digital marketing industry. He specializes in SEO, HubSpot, and PPC campaign management. Jake has a proven track record of helping businesses increase their online visibility and drive more traffic, leads and sales. He is a Certified Google Ads Specialist and a Certified HubSpot Developer.

Related posts

Tags: ,

Want to Get Email Updates of New Articles?

Join My Email Newsletter