How To Hide Wordpress Pages When Using an Artisteer Based Template
Artisteer is a fantasic piece of software. It makes it so easy to create wordpress themes, and i am using a Artisteer theme here on WSS101
But one of the probelms with these themes is that the menu that appears across the top is slightly non standard, and so when you want to hide a wordpress page from the main navigation bar, it not that intuitive to do.
So why would we want to hide a page from the navbar?
I needed to do it just the otherday, becuase I had created a bunch of email signup pages, such as a confirmation page, thanks for signing up page, and the download page.
Of course I didn’t want these pages to appear on the main navigation bar, so I had to hide them.
So this is how you do it, you are gonna have to edit your theme files.
First find your header.php file in your theme’s folder, and open it in your favourite text editor.
Right at the bottom of the file, you will find a bit of code that looks like this :
Note the numbers in brackets, these are the page id’s you wish to exclude. They must be surrounded by single quotes as shown above.
Now upload file to your theme folder.
Now, find and open a file called functions.php (in your theme folder)
No add the bits, shown underlined in red. Save the file and upload to your theme folder.
You should now see the pages hidden from the main navigation menu
Have fun makes landing pages, signup pages and download pages in your Artisteer based themes.



November 10th, 2009 at 5:15 am
Hi, great idea.
But do you hav a hint to do this:
have an empty parent page visible but not clickable, and several chil pages visble and clickable?
thanks for your help!
November 13th, 2009 at 9:07 am
Hi Herve,
I don’t know of any easy way to do this within Wordpress, but one method that you could use would be to place some javascript code on the page you want to make “unclickable” so that when a person “clicked” on it, it would immediately redirect to the first child page.
Something like :
[script type="text/javascript"]
window.location = “http://www.YOURDOMAIN.com/FIRST-CHILD-PAGE”
[/script]
**NOTE:**
Simply replace all [ symbols with the < symbol, and all ] symbols with the > symbol
I haven’t tested this code, this is just straight off the top of my head.
Let me know if this approach works for you
Bruce
November 21st, 2009 at 4:51 am
Great information on your site Bruce! I am a bit surprised you are recommending Artisteer: How optimized is Artisteer for SEO? Is it an good solution for small business websites.
I was under the impression that Artisteer was targeted at the beginner, but if someone of your calibre rates it highly, then I will take another look at it!
December 15th, 2009 at 2:26 pm
Herve made the comment above about nested menus.
I recently found a way to do this and made a post about it right here on WebsiteSecrets101.
You can find the post here
http://www.websitesecrets101.com/handling-nested-menus-in-wordpress
Hope it helps
Bruce