Adding a New Page at a Custom URL

Last updated on June 26, 2024.

This document guides you in adding a new page to your site at your specified URL.

Prerequisites

To follow the steps in this tutorial, you should understand how to create a page: Creating a Page

Steps

Adding a new page at a custom URL is a two-step process:

  • Step 1: Create a link to the new page
  • Step 2: Create a new page

Step 1: Create a link to the new page

Add a link to the previously created page that links to the About page:

app/views/pages/index.liquid

Sync or deploy. You should see the 'About' link appear on your Homepage.

Step 2: Create a new page

Create the page in the directory. Add a short description ('About') that shows you this is the About page and link to the Homepage.

app/views/pages/about.liquid

Sync or deploy. You should find that the 'About' link on your Homepage now links to the newly created About page. The 'Home' link on your About page links to your Homepage, allowing you to switch back and forth between the two pages.

Next Steps

Congratulations! You have created a new page at a custom URL. Now you can learn how to inject dynamic content into a layout: Injecting Dynamic Content into a Layout

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.