# Header not displayed on custom homepage

**URL:** <https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106>\
**Category:** Developer help\
**Created:** [January 16, 2019, 9:18pm UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106 "2019-01-16T21:18:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AloisM](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AloisM](https://forum.ghost.org/u/AloisM)\
**Post date:** [January 16, 2019, 9:18pm UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106/1 "2019-01-16T21:18:06Z")

</div>

Hello,

I have setup a custom homepage on my Ghost blog. I have a page created in Ghost web interface named “Home” which is available at /home/.

My routes.yaml file is  
routes:  
/:  
data:  
post: page.home  
template:  
- page

```
collections:
  /blog/:
    permalink: /blog/{slug}/
    template: 
      - index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

```

When i access the page with /home/ everythings is ok but when i access to the root of my website, the page is showing up whithout the header.

Exactly like @damosullivan here : [Dynamic Routing with static home page not working as expected - #6 by damosullivan](https://forum.ghost.org/t/dynamic-routing-with-static-home-page-not-working-as-expected/3673/6)

Do you got some ideas ?

---

<div class="post-metadata">

**Author:** ![AloisM](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AloisM](https://forum.ghost.org/u/AloisM)\
**Post date:** [January 27, 2019, 1:52pm UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106/2 "2019-01-27T13:52:29Z")

</div>

I haven’t found the source of the problem yet, but I just noticed something curious. When I zoom the display or when I consult on mobile, the header appears well. I also noticed that the background is not the same color as on a classic page. If anyone knows where the problem may come from.

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/0/0a1a24ff68143d06be4db6f6d7799a1885e702de.png)  
 ![Capture2](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/c/ca12fae42f124b51dde8f2479fc3e11cc518db6d.png)

---

<div class="post-metadata">

**Author:** ![kuzemkon](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kuzemkon](https://forum.ghost.org/u/kuzemkon)\
**Post date:** [January 28, 2019, 5:49am UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106/3 "2019-01-28T05:49:14Z")

</div>

Hello, this is because you changed the home page layout but didn’t change the styles.  
To fix the header you need to remove this style specification [Casper/screen.css at main · TryGhost/Casper · GitHub](https://github.com/TryGhost/Casper/blob/master/assets/css/screen.css#L101) .  
Also, you need to change the background color of home page article here [Casper/screen.css at main · TryGhost/Casper · GitHub](https://github.com/TryGhost/Casper/blob/master/assets/css/screen.css#L749) .

The last thing, I think, you need to improve is to show the logo in the home page header and remove logo duplicate in the /blog page. To achieve this just change the `home` to `blog` here [https://github.com/TryGhost/Casper/blob/master/partials/site-nav.hbs#L3](https://github.com/TryGhost/Casper/blob/master/partials/site-nav.hbs#L3) .

I hope it will help you!

---

<div class="post-metadata">

**Author:** ![AloisM](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AloisM](https://forum.ghost.org/u/AloisM)\
**Post date:** [January 28, 2019, 5:13pm UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106/4 "2019-01-28T17:13:35Z")

</div>

Hello,  
Thank you, it works perfectly!

Bonus question, do you know if it is possible to remove the display of the page name (in my case “home”) only for the home page?

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/3/3f09cc7a8f4c96d69a042757beb278c35f2dd5c7.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [February 11, 2019, 5:17pm UTC](https://forum.ghost.org/t/header-not-displayed-on-custom-homepage/5106/5 "2019-02-11T17:17:44Z")

</div>

Closed on February 11, 2019, 5:17pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
