This article explains how to rename pages and cards in your Search frontend if you are building with the Hitchhikers Theme.
To rename a file:
- Click Pages in the navigation bar and click on your desired site.
- Click on the View Code Editor button.
- Hover over the master branch and click on the pencil icon () that appears.
- The files or folder you rename will differ depending on if you want to rename a page or card. Determine what to rename:
- Page Files
- If you want to rename a page and therefore update the URL path, you can do so by renaming both the
config > [pageName].json
file and thepages > [pageName].html.hbs
file. - Make sure to rename both page files at the same time to avoid any issues. Note that the old URL will not redirect to the new URL, so rename with caution.
- If you want to rename a page and therefore update the URL path, you can do so by renaming both the
- Card File
- If you want to rename a card, make sure that you update the cardType object within any
config > [pageName].json
with that card to account for the updated name, if applicable.
- If you want to rename a card, make sure that you update the cardType object within any
- Page Files
- Hover over the file or folder you wish to rename, click the three dots (…) that appear, and click Rename in the drop-down menu.
- Edit the name in the text box.
- Click Rename File once complete.
Comments
0 comments
Article is closed for comments.