# Pages not calling style sheets

**URL:** <https://community.hubspot.com/t/pages-not-calling-style-sheets/52115>\
**Category:** CMS Development\
**Created:** [February 24, 2022, 5:59pm UTC](https://community.hubspot.com/t/pages-not-calling-style-sheets/52115 "2022-02-24T17:59:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_levine](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/r_levine/32/48852_2.png) [@r\_levine](https://community.hubspot.com/u/r_levine)\
**Post date:** [February 24, 2022, 5:59pm UTC](https://community.hubspot.com/t/pages-not-calling-style-sheets/52115/1 "2022-02-24T17:59:36Z")

</div>

I’m curious if anyone else has run into this.

I created a custom [global] module (footer menu excerpt below) that uses `require_css` to include a stylesheet that lives in a different HubSpot folder. The preview works as expected and I can see the stylesheet is attached.

I then created a drag and drop partial (footer.html excerpt below) which calls the [global] module. Again, the preview works as expected and I can see the stylesheet is attached.

I then created a drag and drop template (base.html excerpt below) which calls the partial. Again, the preview works as expected and I can see the stylesheet is attached.

I then created a page that uses the drag and drop template. The page displays all the content from the drag and drop template and partial, however the stylesheet is NOT attached. Inspecting the code reveals no errors, the stylesheet simply isn’t called (no errors).

What am I missing?

footer menu module excerpt:

```lia-code-sample
{% import "otc/tools/load_files_macro.html" %}
{% set module_name = "footer-menu" %}
{{ load_files(module_name|regex_replace("-", " ")) }}

```

load\_files\_macro.html excerpt:

```lia-code-sample
{%- macro load_files(fileName) -%}
 {{ require_css(get_asset_url("otc/css/main.css")) }}
 {{ require_css(get_asset_url("otc/css/theme-overrides.css")) }}
 {{ require_css(get_asset_url("otc/modules/"~fileName~"/"~fileName~".css")) }}
{%- endmacro -%}

```

footer.html excerpt:

```lia-code-sample
{% dnd_module path="../../modules/footer menu/footer menu" is_large_text=True %}
 {% module_attribute "links" is_json=True %}
 [
 {"text": "OTC News", "url":{"href":"https://www.otcindustrial.com/otc-news"}},
 {"text": "Our Companies", "url":{"href":"https://www.otcindustrial.com/our-companies"}},
 {"text": "Industries Served", "url":{"href":"https://www.otcindustrial.com/otc-industries-served"}}
 ]
 {% end_module_attribute %}
{% end_dnd_module %}

```

base.html excerpt:

```lia-code-sample
{% block footer %}
 {% global_partial path="../partials/footer.html" %}
{% endblock footer %}

```

Again, everything works as expected everywhere except at the page level where the stylesheets aren’t called.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 25, 2022, 7:03pm UTC](https://community.hubspot.com/t/pages-not-calling-style-sheets/52115/2 "2022-02-25T19:03:52Z")

</div>

@Oezcan , any thoughts here?

---

<div class="post-metadata">

**Author:** ![r\_levine](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/r_levine/32/48852_2.png) [@r\_levine](https://community.hubspot.com/u/r_levine)\
**Post date:** [February 25, 2022, 7:11pm UTC](https://community.hubspot.com/t/pages-not-calling-style-sheets/52115/3 "2022-02-25T19:11:46Z")

</div>

Thanks, @dennisedson. The issue seems to have resolved itself after a number of hours.

It wasn’t a caching issue on my end, and using `?hsCacheBuster=####` didn’t resolve the issue, so I’m curious what the problem might have been and how to avoid it in the future, if anyone has any insight…

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 25, 2022, 8:19pm UTC](https://community.hubspot.com/t/pages-not-calling-style-sheets/52115/4 "2022-02-25T20:19:37Z")

</div>

[@r\_levine](https://community.hubspot.com/t5/user/viewprofilepage/user-id/137114) , I would chalk this up as a fluke. Might have been some CDN caching happening.
