# Modifying theme to add custom header

**URL:** <https://discourse.gohugo.io/t/modifying-theme-to-add-custom-header/27510>\
**Category:** support\
**Created:** [August 11, 2020, 9:06pm UTC](https://discourse.gohugo.io/t/modifying-theme-to-add-custom-header/27510 "2020-08-11T21:06:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slackito](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@slackito](https://discourse.gohugo.io/u/slackito)\
**Post date:** [August 11, 2020, 9:06pm UTC](https://discourse.gohugo.io/t/modifying-theme-to-add-custom-header/27510/1 "2020-08-11T21:06:46Z")

</div>

hi, i’d like to use [GitHub - alanorth/hugo-theme-bootstrap4-blog: A blogging-centric Bootstrap v4 theme for the Hugo static site generator.](https://github.com/alanorth/hugo-theme-bootstrap4-blog) as theme, but i need some special .css included in all posts/entry page etc., so i found this [Add ability to insert custom code into the global \<head\>. by DeedleFake · Pull Request #17 · alanorth/hugo-theme-bootstrap4-blog · GitHub](https://github.com/alanorth/hugo-theme-bootstrap4-blog/pull/17) but somehow, it is not working.

> The change is pretty simple. I wanted to put some custom JavaScript in the of a site I’m building, but I didn’t want to have to edit the theme or make a copy of `layouts/_default/baseof.html` , since later changes to the theme may break it. This change allows code to be insterted into by creating a `layouts/partial/head-custom.html` .

i created a layouts/partial/head-custom.html, but it is not included. I echoed “TEST” in it, but its not included. What am i doing wrong?

---

<div class="post-metadata">

**Author:** ![sephore](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sephore/32/11673_2.png) [@sephore](https://discourse.gohugo.io/u/sephore)\
**Post date:** [August 11, 2020, 11:17pm UTC](https://discourse.gohugo.io/t/modifying-theme-to-add-custom-header/27510/2 "2020-08-11T23:17:59Z")

</div>

`partial` or `partials`?

---

<div class="post-metadata">

**Author:** ![slackito](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@slackito](https://discourse.gohugo.io/u/slackito)\
**Post date:** [August 11, 2020, 11:39pm UTC](https://discourse.gohugo.io/t/modifying-theme-to-add-custom-header/27510/3 "2020-08-11T23:39:20Z")

</div>

thanks, in partials its working, so its a documentation error
