# How to use standard\_header\_includes without loading layout.css

**URL:** <https://community.hubspot.com/t/how-to-use-standard-header-includes-without-loading-layout-css/51892>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [February 21, 2022, 3:04pm UTC](https://community.hubspot.com/t/how-to-use-standard-header-includes-without-loading-layout-css/51892 "2022-02-21T15:04:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![albertsg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/albertsg/32/99473_2.png) [@albertsg](https://community.hubspot.com/u/albertsg)\
**Post date:** [February 21, 2022, 6:01pm UTC](https://community.hubspot.com/t/how-to-use-standard-header-includes-without-loading-layout-css/51892/2 "2022-02-21T18:01:36Z")

</div>

Hi @tkruger, you can set your own variable to be equal to “standard\_header\_includes”, then loop through every line in the variable and if it includes the CSS file then don’t add it to your template.

Something like this:

```lia-code-sample
{% set custom_header_includes = standard_header_includes|split('\n') %}

{% for line in custom_header_includes %}

 {% unless line is string_containing 'the-file-to-exclude.css' %}
 {{line}}
 {% endunless %}

{% endfor %}

```

By doing this you would be adding all the necessary code except the CSS.

We do something similar in several of our pages and it works for us.

Hope this helps!

---

_[View the full topic](https://community.hubspot.com/t/how-to-use-standard-header-includes-without-loading-layout-css/51892)._
