fbpx
How To Hide A Page In WordPress In 5 Reliable Ways?
March 2, 2022
How To Hide A Page In WordPress In 5 Reliable Ways?

There are times when you might not want every page on your site to be public, which is why WordPress can be a great tool for building websites. It’s possible that the web pages you’re building aren’t ready yet, or the websites you’re building aren’t ready yet, or you might have information that only specific users should see. In addition to the many privacy settings that WordPress comes with by default, plugins can further enhance those settings.

We are going to see how to hide a page in WordPress in this article.

Hide page or post in WordPress from Google:

The owners of websites are able to exclude content from search results from search engines like Google.

For instance, a page you may need to create for website ownership verification might be a post you want to hide from the general public.

In addition, you may want to exclude pages with private or sensitive information, so your privacy is protected and your confidential information is not misused. You can, for example, prevent the members’ profile pages from appearing in search engines if you have a membership website.

If your website is under construction, you can hide content from Google and share a sneak preview with your audience. Therefore, Google won’t index unfinished websites in its results.

Why would you want to hide a page in WordPress?

There are many reason why we would need to hide a page in WordPress or even hide a post in WordPress. But most of the time its the following three reasons.

Relevance (or rather, the lack thereof)

Some sites are unrelated to your users, and seeing them will detract from the overall user experience of your website (UX). A page you create to assist with website verification is a nice example. It’s a good idea to keep such pages hidden.

Every page isn’t helpful for user

Some pages on your website may be vital for you, but they aren’t necessarily valuable to your users or your overall SEO strategy. It’s better to keep these pages hidden than to make them public.

Protection of personal information (Privacy)

Another reason to hide a page in WordPress is to safeguard your privacy. You might have pages with a sensitive customer or member information that you don’t want to be seen by the general public. You can hide these pages to protect your privacy and sensitive information.

How to hide a page in WordPress?

So there are 4 ways in which you can hide a page in WordPress from Google:

Method 1: Hide a page WordPress from search engines using AIOSEO
Method 2: Hide a WordPress site until it is ready
Method 3: Password protect to hide a page in WordPress (or a post)
Method 4: Hide a page in WordPress from search engines using robots.txt file
Method 5: Use the Ultimate Category Excluder Plugin

Now let us discuss each of these methods separately.

Method 1: Hide a page in WordPress from search engines using AIOSEO

WordPress plugins like All in One SEO (AIOSEO) can be used to hide a WordPress page from Google. More than 2 million websites use this SEO plugin. Beginners are advised to use this method.  

The free version of AIOSEO also comes with the ability for you to hide pages and posts from google. We need to install AIOSEO plugin. To do so,

  • Go to your site’s dashboard
Hide a page in WordPress
  • Plugin -> Add New, from the left hand-side menu
  • Search for “AIOSEO” plugin
  • Install and activate
  • Open and edit the post or page you want to hide
  • Click on the “AIOSEO” tab in the upper right corner
  • Click on the “Advanced settings” icon
  • Click on the toggle to switch off the robots settings
  • More options will appear
    To exclude the page from appearing in Google search result, you need to select “No Index”
    This will automatically add a line of code that tells the search engines to not index the settings
    code:
    <meta name = "robots" content = "noindex" />
  • Now you can save or publish your “post”
  • AIOSEO allows you to hide different sections of content from appearing on google
  • Go to site’s dashboard
  • All In One SEO -> “Search Appearance”, from the left hand-side menu
  • You get all of the following options
    -> Content types
    -> Taxonomies
    -> Media
    -> Archives
    There would be “Show in results”, set it to “NO” and click save.
  • AIOSEO will apply a “noindex” HTML meta tag to the material, preventing search engines from indexing it and preventing it from appearing in search results. The information will also be removed from your XML sitemaps.

Method 2: Hide a WordPress site until it is ready

When you’re constructing, remodeling, or making large theme and plugin upgrades, you might wish to keep your WordPress site hidden from Google and the general public. The simplest way to do this is to use a plugin like SeedProd to put your website in maintenance mode.

  • Go to your site’s dashboard
  • Plugin -> add new
  • Search for “SeedPro
  • Install and activate
  • Now click on “SeedPro” from the left hand-side menu and select “Landing pages”
  • Turn on the toggle for “Maintenance mode”
    This allows you to build a temporary page for your visitors to view while your website is being worked on.
  • Click on “Create New Landing page”
  • Choose a thumbnail
  • Enter your new page details
    Click on “Save and start Editing page”
  • To design your maintenance mode page, go to the SeedProd drag and drop page builder. To fit your logo, you can alter the text and add a custom background image here.
  • You can also use the left column to add additional blocks.
  • You must Publish the page once you are satisfied with the design. Simply select “Save” from the drop down menu and select “Publish”

Method 3: Password protect to hide a page in WordPress (or a post)

A unique strategy is used in this method. You can simply password protect a page, making it viewable only to those with the password, rather than asking the search engines not to index it.
It is built-in to WordPress to protect posts and pages with a password.

  • Edit the post you want to protect
  • Open settings in the upper right corner
  • Click on “Visibility” -> “Public”
  • Selected “Password Protected”
    write a strong password
  • Publish the post
  • Now when this post is opened, it will ask for the Password

Method 4: Hide a page in WordPress from search engines using robots.txt file

This method necessitates editing the robots.txt file, which is a configuration file that gives search engine bots instructions.
We don’t advocate this strategy to beginners because incorrect instructions in this file can have a detrimental impact on your site’s SEO.

  • Go to your site’s dashboard
  • Click on All In One SEO and select Tools
  • Open the “Robots.txt editor” tab from the top
  • Add the following lines to your robot.txt file
    User-agent: *
    Disallow: /your-page/

    This user-agent allows you to target specific bots. Asterisk sign is used to include all search engines. Second line is for the part of the URL that comes after the domain name.
  • click “save”

To hide a blog post, you will add your blog post’s URL to your robots.txt file

User-agent: *
Disallow: /2016/12/my-blog-post/
(/2020/12/test-blog-post/ is the part of the URL that comes after the domain)

how to hide a page in wordpress
  • Click on save

The use of robots.txt to hide material has various drawbacks. First and foremost, keep in mind that the robots.txt file is open to the public. That means anyone may look through it to see if there are any pages you’re trying to keep hidden.

Second, while most search engines adhere to the instructions in the robots.txt file, some crawlers and bots may choose to ignore it and index those pages nevertheless. These bots scour the internet seeking malware to disseminate, websites to target, and personal information such as email addresses and phone numbers to harvest.

Method 5: Use the Ultimate Category Excluder Plugin

If you prefer to use a plugin to exclude entire categories from the home page, Ultimate Category Excluder is the one for you.

The plugin makes use of the WordPress categories feature to remove specific categories from the homepage.

  • Go to your site’s dashboard
  • Click on settings -> “Category Excluder” from the left hand-side menu
  • Chose the categories you want to exclude from your front page, feeds, archives and search
  • Click update

Conclusion:

Maybe the web pages you are building aren’t ready yet, or perhaps you are building something that only certain users should see.
In addition to the many privacy options provided by WordPress by default, plugins can expand these options even further.

Using all of the above mentioned pages, you can easily hide a page in WordPress or hide a post in WordPress.

Asma Khalid is a Product Manager at CloudPages. She also oversees Content Writing and Social Media at CloudPages.

Recent Posts

Get Newsletter Updates

How To Properly Backup Your WordPress Website?

How To Properly Backup Your WordPress Website?

Are you looking for versatile ways to backup a WordPress website? It’s essential to create a full backup for your WordPress site as it helps you recover or restore your website when something goes wrong. You never know when something bad will happen and you will lose...

read more
How to Fix the 504 Gateway Timeout Error?

How to Fix the 504 Gateway Timeout Error?

If you’ve ever visited a website that serves you on an error page, you would have experienced how frustrating it is classified as the most frustrating thing you can do as a brand doesn’t meet your target audience's needs and expectations. If you’re a website visitor,...

read more
Why Good Page Experience is Needed For Every Website

Why Good Page Experience is Needed For Every Website

Technology isn’t perfect! However, regular monitoring and maintenance help it run as smoothly as possible. This can be true when it comes to managing your server. There are many who are still in search of the optimal server solution for their website's better page...

read more

Comments

3 Comments

  1. Lisa

    I use a plugin to hide certain posts from my blog once they’re no longer relevant (eg, competition posts), it’s a really useful thing to do without harming SEO.

    Reply
  2. Her Digital Coffee

    Thank you so much for sharing! I love the step by step photos, very helpful!

    Reply
  3. Cristina

    Very useful post and instructions!

    Reply

Submit a Comment

Your email address will not be published.

Subscribe

Join Our Newsletter

Pin It on Pinterest

Share This