You can hide a page from your main navigation, from users altogether, and even from Google.
There are three things you need to do if you want to create a hidden page.
Hiding your page from the site’s navigation also removes the page from your sitemap.xml
.
Go to Page Settings, find In Nav and choose No.
Go to Page Settings, click Advanced, and paste the following into the Head Injection field.
<meta name="robots" content="noindex">
This tells search engines not to index your page.
From the Dashboard, click on Settings, and scroll to Robots.txt. Modify the URL in code below and paste it in to your Robots.txt, then click save.
Disallow: /page-slug
Example
Disallow: /how-to/hide-a-page-from-search
This is another method for telling search engines not to index your page. It is important to employ both methods.