How can I add a custom page to Shopify without the /pages/ URL?
domain.com/custompage, but the built in functionality puts all pages inside a /pages/ directory so the URL comes out
domain.com/pages/custompage which I don't want.
I found this answer (https://community.shopify.com/c/shopify-design/adding-custom-pages-to-your-domain-without-the-pages-custom-page/td-p/220443) from a Shopify Guru in 2016 that mentions potentially setting up a custom HTML template or using an app, which no longer exists.
Any clues on how to achieve this? I have limited experience with Shopify templates, but could figure it out if someone could point me in the right direction.
This blogger (https://paulnrogers.com/shopify-url-structure/) says it can't be done:
"Q: Can you create pages on the root? A: The answer to this is no –> all pages have either /pages/, /collections/ or /products/ in the URL."
However others have told me it is possible. Just not how to do it.
Create a section Name "test" // first a step Create a page json Name "test" // The second step After creating the page, JSON does a section test
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.