Hiding a page in an Artisteer WordPress Menu

by Simon on June 6, 2009

In order to hide a page from showing in the navigation menu of a theme created in Artisteer it is simply a case of editing the correct part of the functions.php file in the root of the themes folder. You can access this either through the built in WordPress theme editor or via a text editor like EditPlus.

To hide the page from the Artisteer menu first you will need to get the page number. Then edit the function art_menu_items() in functions.php.  You can see below that all I have done is add the text ‘&exclude=12,3′ to line 527.

Edit the art_menu_items function in functions.php

Edit the art_menu_items function in functions.php

Before I edited it line 527 read:

wp_list_pages('title_li=');

After I edited it it read:

wp_list_pages('title_li=&exclude=12,3');

Please do give me your feedback below if you find this technique useful and I will write more like this.

Technorati Tags: , , ,

{ 8 comments… read them below or add one }

Max3w December 30, 2009 at 10:26 am

Grazie! Il tuo suggerimento è stato risolutivo. [Thank you! Your suggestion has been decisive.]

Andreas Ocklenburg February 8, 2010 at 1:26 pm

THX!
Very helful, it also works with the “include”-command – so you can define the pages, which appears.

Jori February 25, 2010 at 2:15 am

thanks man ;) Just what i was looking for!

Christopher March 20, 2010 at 9:59 am

A much easier way to hide pages, regardless of how your theme was created, is to install the Exclude Pages plugin by Simon Wheatley.

It adds a checkbox, “include this page in menus”, which is checked by default. If you uncheck it, the page will not appear in any listings of pages (which includes, and is usually limited to, your page navigation menus). The plugin is available on the WP site at http://wordpress.org/extend/plugins/exclude-pages/

Simon May 6, 2010 at 10:16 am

Thanks Christopher. I’ll check that out, although most of the sites I develop now I use Thesis which has built in Menu controls.

Martin November 2, 2010 at 7:58 pm

Thanx you!!! Work great :-)

Babysitter May 4, 2011 at 7:31 pm

Excellent! I was just trying to find a simple solution to this problem and now I know how to properly handle my menus created with Artisteer. Just used it with a new theme. :)

black shadow August 11, 2011 at 3:46 pm

thanks alot
thats works with me

Leave a Comment

Anti-Spam Protection by WP-SpamFree

Previous post:

Next post: