How to Link to Module Fields to Theme Images in HubSpot Themes


How to Link to Module Fields to Theme Images in HubSpot Themes

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" : "{{ get_asset_url('../images/your-image.jpg') }}",
    "alt" : "",
    "width" : "1440",
    "height" : "683"
  }

 


Written by: Jake Lett
Jake Lett is a results-driven B2B marketing consultant with 15+ years of experience helping businesses boost online visibility, generate qualified leads, and increase sales. Specializing in SEO, HubSpot, and PPC campaign management, Jake leverages proven strategies to deliver measurable growth. As a Certified Google Ads Specialist and HubSpot Developer, he is committed to driving impactful results for his clients.

Related posts

Tags: ,

Want to Get Email Updates of New Articles?

Join My Email Newsletter