How to keep a page out of your published site
In TeleportHQ, you can keep a page in your project without putting it on your live site. Right-click the page in the Pages list and click Exclude from Code Generation. The page is left out the next time you publish or download your code. To bring it back, click Include in Code Generation.
Before you start
- This works for any page except your homepage and your 404 page.
- You need a role that can edit pages.
- A typical use: a Black Friday page you prepare weeks in advance.
Steps
- In the left sidebar, click the layers icon (tooltip Pages, Components & Tree View).
- In the Pages list, right-click the page. You can also click the … button at the end of its row.
- Click Exclude from Code Generation.
- Publish your site again so the change reaches your live site. See How to publish your site.
Check that it worked
In the Pages list, the excluded page's name is shown in brackets, for example ( Black Friday ), with a warning icon. Pointing at it shows Page is ignored on code generation. Excluded pages move to the top of their folder.
After you publish, the page's address on your live site no longer opens it. Buttons and menu items that pointed to it stay where they are, with the same text and style, but they no longer link anywhere.
Include the page again
To put an excluded TeleportHQ page back on your site:
- In the Pages list, right-click the page.
- Click Include in Code Generation.
- Publish your site again.
Troubleshooting
Exclude from Code Generation isn't in the menu The page is your homepage or your 404 page, which must always be published. To exclude your current homepage, first set another page as the homepage. See How to choose which page is your homepage.
The page is still on my live site Excluding only takes effect when you publish again. Open Publish and publish the site. See Why don't my changes show on my live site?
Good to know
- Other ways to limit a page. Excluding removes the page completely. If you want the page live but not in Google, turn on No Index in Page SEO Settings instead. See How to hide a page from Google, set a canonical URL or redirect a page. If only signed-in visitors should see it, use Require Authentication. See How to make a page visible only to signed-in users.
- To take the whole site offline, not one page, use Unpublish in the Publish window. See How to take your site offline (Unpublish).
- You can still edit it. An excluded page stays fully editable on the canvas.
- Some automatic tools skip it. One-click page animations, some AI tools and the links in premade navigation sections leave excluded pages out.
- Terms & Conditions page. Right-clicking a page also offers Set as Terms & Conditions. That doesn't hide anything: it tells TeleportHQ which page to link from your cookie banner and store checkout.