• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Technostarry

  • Home
  • Windows 8
  • Android
  • iOS
  • Web Apps
  • Web Browser
  • Hardware
  • About

Hide a Page in WordPress from Navigation Without The Help of Any Plugin

January 20, 2011 by Saqib 4 Comments

Sometimes you may think to hide a particular page in WordPress from the navigation. There may be instances when you think that you added that page, but now want to remove that page, but don’t actually want to delete that page (may be for SEO purposes). Yes you can hide a page and the solution is this simple.

Firstly, you need to know the page ID of the page which you are going to hide. To do this, login to WordPress and go to Pages and hover the mouse over a page, E.g. if you hover the mouse over About page, then you will see its URL like this in the status bar:

http://www.technostarry.com/wp-admin/post.php?post=2&action=edit

Notice this 2 in the URL and this is the Page ID which we want. OR you can also use Firebug firefox plugin. Just use the inspect tool of firebug and click on that page. You will see its page ID.

wordpress-pages

Now just go to Appearance > Editor and click on style.css if it is not already selected. Scroll down and add this code at the end of the file:

.page-item-2 { display:none; }

Instead of this 2, you can add the Page ID of the page which you want to hide, and this was just an example.

Firstly locate the page ID and then go ahead and write that ID in the code. So after this, just click on Update File. That’s done. You have just hidden a page from displaying in the front end.

Why hide a Page in WordPress ?

  • Because you may not want to delete that page.
  • You want to temporarily hide that page for any reasons.
  • Maybe for SEO purposes

If you follow this method, then the page will be hidden and will never be displayed anywhere, be it in Navigation or in Widgets. This code will hide that particular Page from everywhere. Enjoy.

Filed Under: WordPress

Reader Interactions

Comments

  1. stackifieds says

    March 25, 2011 at 7:44 pm

    Great stuff. I will really try it out. Thank you for sharing.

    Reply
  2. vaj says

    January 21, 2011 at 8:06 am

    Really very helpful for designer and blogger like us. We can manage such changes without help of programmer.

    Reply
  3. Mrinmay Bhattacharjee says

    January 20, 2011 at 10:45 pm

    Good Post Man. Finally a solution :)

    Reply
    • Saqib says

      January 21, 2011 at 1:43 am

      Yes, a really small and nifty trick for those who don’t want to use any plugin for this purpose.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

STAY CONNECTED

  • Facebook
  • Google+
  • RSS
  • Twitter
  • YouTube

SUBSCRIBE

Subscribe now to get the latest updates from this blog right to your Inbox

Recent Posts

  • 6 Things to Remember Before Buying a Micro SD Card
  • 5 Best Android Stock Market Apps for India
  • Facebook App Alternatives for Android , and Why You Should Use Them
  • Kindle Oasis vs Voyage vs Paperwhite: Which one to Buy

Footer

Links

  • About
  • Subscribe
  • Contact
  • Advertise
  • Privacy Policy

Books on cloud storage services:

  • Mastering OneDrive And Office Online
  • Mastering Google Drive and Docs (With Tips)
  • Mastering Dropbox with Useful Tips and Apps

Must Read Articles

  • How to Change Default Apps on Android
  • 6 Tips to Increase Battery Life on Android 4.4 KitKat Devices
  • How to Transfer Documents and Files to your Kindle
  • 5 Best Free Offline Dictionary Apps for Android

© Copyright 2016 Technostarry · All Rights Reserved ·