Recently, one of our readers asked How to Hide a Page in WordPress? You often have to hide the page from search results to protect your privacy or keep unwanted users out.
In this article, we will learn how you can hide your page from search engines without affecting the overall SEO of your existing WordPress site and solve all your queries like:
How to Hide a Page in WordPress?
How to Hide a Page in WordPress from search engine?
How to Hide a Page in WordPress using a plugin?
How to Hide a Page in WordPress using code?
Hide any of your WordPress posts or pages from Google:
Google permits us to exclude whatever part of our content we want. You can do this easily by using your website’s robots.txt file or by using HTML Meta tags.
In this post, I will tell you that you can do this by using two methods in WordPress. You can choose from them which proves to be right for you.
We will also tell you how you can make your blog posts and pages password protected in WordPress. If you do not want to use the first two methods, then by doing this, you can control the visibility of posts and pages for your users.
Method 1: How to Hide a Page in WordPress using WordPress Plugins
This method is easy and recommended for beginners.
In the first place, you need to install and activate the Yoast SEO plugin.
The next thing you will have to do is edit the posts and pages you want to hide from Search Engines. Scroll down to the bottom of the Yoast SEO Meta Box under Post Editor, and then click on the advanced settings button.
The advanced settings option allows you to place meta tags robots on your blog posts or pages. Using the Meta robots tags, you can tell the search engine to neither index nor follow this post or page.
Then you can save or publish your single page or post.
The Yoast SEO plugin will add this line to your blog post or page.
This line tells the search engines that neither follow nor index this page.
Method 2: How to hide your Blog Post or Page from Search Engines using Robots.txt.
In this method, you have to edit the robots.txt file of your post or page in WordPress. If you give incorrect information in this file, it can hurt the overall SEO of your site. For this reason, this method is not recommended for beginners.
This robots.txt file is a configuration file that you can add to your WordPress site’s root directory. It is meant to provide instructions to search engine bots; that is why its name is robots.txt file.
You can edit your robots.txt file by connecting your website with an FTP client or directly to cPanel of your web hosting.
You must add the following lines to your robots.txt file.
Disallow: / your-page /
The next line is the URL of the part of your website that comes after your domain.
So let’s assume that you have to hide from the below blog post search engines.
Here’s how to add the URL to a robots.txt file to hide this post.
Disallow: / 2016/12 / my-blog-post /
Don’t forget to save your changes and upload your robots.txt file to your server again.
Disadvantages of using robots.txt file to hide your content:
The first thing you have to keep in mind is that the robots.txt file is publicly accessible. Anyone can open it directly and know which pages you are trying to hide.
Even though many search engines follow the instructions of robots.txt files, many search engines ignore them. These are the bots that spread spamming on the web.
Method 3. How to make your WordPress posts or pages password protected?
This method is a different method. Instead of asking a search engine not to index the post, it only shows your post to those log on who know the password.
WordPress Sites comes with a built-in feature to protect your blog posts and pages with passwords from viewing settings. Edit your post or page that you want to hide content.
Under the Publish Meta Box, click on the “Edit” link next to the Visibility Option.
This will show you the visibility options available in your WordPress blog. You can keep any post/page public, keep it private, or password to view it.
Hide page and post title are available only to logged-in users who have the role of editor on your WordPress dashboard.
Password protected posts can be viewed by anyone who has a password. You click on the option that is password protected and then enter a strong password.
Now you can publish or save your post/page.
Now any visitor who will access to hide pages and posts on your website must first fill the password, and only then will he be able to see the content of your hiding posts and pages.
How to hide the title in WordPress post
You will often think how good it would have been if you could hide a page titled on WordPress. When you are creating a business website and the title on the home page is spoiling the beauty of your entire page, it is essential to title it.
In such a situation, editing the theme is the only choice left, but this work is precarious if you do not have coding knowledge. Which can spoil your precious time and website theme, but you do not have to worry. It is effortless.
Yes, removing titles on WordPress posts and home pages is very easy. No coding is necessary for this. All you have to do is to install a plugin named Hide Title.
In this article, we have learned about how you can hide your page from search engines without affecting your existing WordPress site’s overall SEO.