How to hide a page in wordpress?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zayn_william
    Senior Member
    • Apr 2022
    • 106

    How to hide a page in wordpress?

    Hi there! Can anyone tell me how I can hide a WordPress page?
  • Christian J
    Senior Member
    • Sep 2022
    • 100

    #2
    Search engines like Google offer website owners the option to exclude specific content from search results. This can be useful for hiding WordPress blog posts and pages that lack general relevance, such as those created for website ownership verification. Additionally, you should exclude pages containing private or sensitive information to safeguard your privacy and prevent unauthorized access to confidential data.


    Hiding content from Google is advantageous when your website is still under development and you wish to provide your audience with a sneak preview. This approach prevents Google from indexing an incomplete website in its search results.


    Method 1: Hide a page in WordPress - by changing the visibility setting of a page

    Step - 1: Log into your WordPress Dashboard.
    Step - 2: Scroll down to Page > All Pages, and choose one page.
    Step 3: You get the visibility option on the right side of the page.
    Step 4: The default setting should be 'Public.' If you switch to 'Private,' you can only access the content.




    Method 2: Hide a page in WordPress - by setting a password

    Step - 1: Log into your WordPress Dashboard.
    Step - 2: Scroll down to Page > All Pages, and choose one page.
    Step 3: You get the visibility option on the right side of the page.
    Step 4: Select the "Password Protected" option to implement password protection. Then, enter your desired password and click "Update" to save the changes.





    Method - 3: Hide a WordPress page - using the robots.txt file

    Step - 1: Log into your CPanel account.
    Step - 2: Scroll down to Files and choose File Manager.
    Step 3: Inside the public_html directory, search robots.txt file.
    Step 4: Open the file and add the following lines:

    User-agent: *
    Disallow: /your-page/

    The asterisk (*) in the first line indicates that you are targeting all search engine bots. In the following line, replace it with the page address you wish to hide.


    For example, if you want to hide the page http://demo.com/2023/demo-page/, you would write:

    User-agent: *
    Disallow: /2023/demo-page/


    Method 4: Hide a WordPress Page - Using the AIOSEO plugin

    You can use a WordPress plugin such as All in One SEO (AIOSEO) to hide a WordPress page from Google's index.

    Step - 1: Log into your WordPress Dashboard.
    Step - 2: Scroll down to the Plugins and choose Add New.
    Step 3: Search for the AIOSEO plugin.
    Step 4: Click the Install Now button and then Activate it.




    Step 5: In the WordPress content editor, navigate to the AIOSEO General Settings and select the Advanced tab.



    Step - 6: You will now find a 'Robots Setting' option with a toggle that says 'Use Default Settings.' Click on the toggle to deactivate the robot setting.



    Step - 7: Additional options will appear under 'Robots meta after deactivating the setting.' To prevent the page from appearing in Google search results, tick the box that reads 'No Index.'










    Comment

    Working...
    X