# Using the new custom-homepage feature

**URL:** <https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496>\
**Category:** Development\
**Created:** [April 4, 2024, 9:43pm UTC](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496 "2024-04-04T21:43:02Z")\
**Posts on this page:** 1\
**Showing post:** 41

<div class="post-metadata">

**Author:** ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)\
**Post date:** [August 27, 2024, 6:39pm UTC](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496/41 "2024-08-27T18:39:57Z")

</div>

I noticed today that adding a component into a route via the new recommended method does not work when using this theme modifier.

```javascript
import { apiInitializer } from "discourse/lib/api";
import welcomeBanner from "../components/welcome-banner";

export default apiInitializer("1.8.0", (api) => {
  api.renderInOutlet("custom-homepage", welcomeBanner);
});

```

The only way it works is `javascripts/connectors/custom-homepage/welcome-banner.hbs`

---

_[View the full topic](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496)._
