# Fix gap between header and hero

**URL:** <https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080>\
**Category:** HivePress\
**Created:** [November 10, 2026, 7:30pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080 "2026-11-10T19:30:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knode](https://community.hivepress.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@Knode](https://community.hivepress.io/u/Knode)\
**Post date:** [November 10, 2026, 7:30pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080/1 "2026-11-10T19:30:56Z")

</div>

Is there CSS to fix the gap between the header and hero (first block) on custom pages?

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [November 11, 2026, 3:18pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080/4 "2026-11-11T15:18:36Z")

</div>

Hi,

If you’re using the ListingHive theme, we recommend creating the hero section with a “Read More” separator, as in the demo content. Everything before the separator will be displayed in the hero without extra spacing, and the hero background is set with the page’s featured image. You can find more details in the documentation: [How to add a header image to pages - HivePress Help Center](https://help.hivepress.io/article/142-how-to-add-a-header-image-to-pages).

If you’ve inserted a custom block into the page content and want to use it as a hero, this CSS may help. Please replace the page ID 123 with your own page ID:

```auto
.page-id-123 .site-content {
  padding-top: 0 !important;
}

```

Hope this helps

---

<div class="post-metadata">

**Author:** ![Knode](https://community.hivepress.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@Knode](https://community.hivepress.io/u/Knode)\
**Post date:** [November 11, 2026, 5:58pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080/5 "2026-11-11T17:58:35Z")

</div>

When using the featured image and the ‘read more’ separator there is now a large blank space below the hero, between it and the following section block (cover block)

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [November 11, 2026, 6:03pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080/6 "2026-11-11T18:03:27Z")

</div>

Could you please share a screenshot showing the issue and where exactly it occurs? This will help us better understand the situation and provide more accurate guidance.

You can also share a link to your website. If you prefer, you can send it privately to [support@hivepress.io](mailto:support@hivepress.io).

---

<div class="post-metadata">

**Author:** ![Knode](https://community.hivepress.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@Knode](https://community.hivepress.io/u/Knode)\
**Post date:** [November 11, 2026, 6:14pm UTC](https://community.hivepress.io/t/fix-gap-between-header-and-hero/18080/7 "2026-11-11T18:14:48Z")

</div>

I have used the CSS for now. Thank you!
