Hi everyone,
I’m building a custom Shopify app using Remix and I want to add a header menu item (e.g., “Custom Page”) that, when clicked, navigates to a custom page rendered by my app.
Could someone guide me on the best way to implement this?
I’d really appreciate any advice, examples, or best practices for achieving this functionality.
Hi @greeshma
To add a custom header menu item that links to a route handled by your Remix app, the recommended approach is to use a Theme App Extension. This allows you to safely inject app blocks or links into the storefront without directly modifying the merchant’s theme code.
Here’s how you can approach it:
- Create a Theme App Extension in your app.
- Use App Blocks or App Embed Blocks to inject the “Custom Page” link into the header or navigation.
- Point the link to a custom route in your Remix app, like /apps/custom-page.
This approach keeps your integration upgrade-safe and merchant-friendly.
Thanks
1 Like
@Dotsquares Thanks for the response.
Do we need to manually create the custom page in the theme, or can it be created dynamically through our app?
Also, on this custom page, how can we display the data that we’ve saved in the Prisma database?