# Issue with Loading CSS File in HubSpot CMS using require\_css and get\_asset\_url

**URL:** <https://community.hubspot.com/t/issue-with-loading-css-file-in-hubspot-cms-using-require-css-and-get-asset-url/129335>\
**Category:** HubSpot Academy Support\
**Created:** [April 6, 2025, 8:22am UTC](https://community.hubspot.com/t/issue-with-loading-css-file-in-hubspot-cms-using-require-css-and-get-asset-url/129335 "2025-04-06T08:22:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikram8147](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Ikram8147](https://community.hubspot.com/u/Ikram8147)\
**Post date:** [April 6, 2025, 8:22am UTC](https://community.hubspot.com/t/issue-with-loading-css-file-in-hubspot-cms-using-require-css-and-get-asset-url/129335/1 "2025-04-06T08:22:51Z")

</div>

I am currently following the **“HubSpot CMS for Developers”** course, and I’ve encountered an issue while working with the drag and drop area in the CMS.

In one of the lectures, the instructor links a CSS file using the following code:  
{{ require\_css(get\_asset\_url(‘boilerplate/css/layout.css’)) }}  
In my case, the CSS file I need to link is located at:css/objects/layout.css

So I used the following path:  
{{ require\_css(get\_asset\_url(‘boilerplate/css/objects/layout.css’)) }}

However, the file does not seem to load, and no styles are being applied. I have confirmed that the file exists in the specified location within the **Design Manager**.

Could you please assist me in identifying what might be going wrong here? Is there a different or correct way to reference this file in my case?

Looking forward to your support.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [April 6, 2025, 4:30pm UTC](https://community.hubspot.com/t/issue-with-loading-css-file-in-hubspot-cms-using-require-css-and-get-asset-url/129335/2 "2025-04-06T16:30:51Z")

</div>

@Ikram8147 is the file you created in the boilerplate? or in your theme? I think the issue might be the boilerplate/ directory in the path and you should replace that with your theme name.
