Hide Pages in Artisteer WordPress Menu

To hide a page or pages from showing in the navigation menu of a theme created in Artisteer, all you have to do is make a minor edit to the functions.php file in the root of the themes folder.  But before doing that, you’re going to need to locate the page ID WordPress assigned your pages.

Record the WordPress Page ID for Pages You Want to Exclude

To identify the WordPress page ID for a page in WordPress, use the WordPress interface to go to the Edit Pages screen. Use your mouse icon to hover over the page you want to exclude from your site’s main menu and look to the bottom of the screen for the destination URL. Write down the numbers after page=. You’ll need this number later. If you want to hide multiple pages in the WordPress menu, write them all down now so you don’t have to go back and forthe between screens.

1. Write down WordPress page IDs for all pages you want to hide on the Artisteer-generated menu

1. Write down WordPress page IDs for all pages you want to hide on the Artisteer-generated menu

Edit the funtions.php File

Open the functions.php file using the WordPress interface (go to Appearance > Editor and then open functions.php in the list of php files on the right of your screen). 

Edit the functions.php file using the WordPress interface

2. Edit the functions.php file using the WordPress interface

 Scroll way down to the bottom of the page and find the section in funtions.php called function art_menu_items(). Go to the line in the following line of code in that section.
wp_list_pages('title_li=');

Add &exclude=269, 272, 276, 278, 291 after the = symbol, where the numbers are the pages you want to hide from the Artisteer WordPress menu.

Make sure to keep all the symbols in tact on the line. So the final line of code will look like this:
wp_list_pages('title_li=&exclude=269, 272, 276, 278, 291, 366');

Click the Update File button and voila! Your pages are now hidden from the menu Artisteer generates. 

3. Edit the wp_list_pages line to exclude the page IDs you want to hide on the Artisteer generated menu

3. Edit the wp_list_pages line to exclude the page IDs you want to hide on the Artisteer generated menu

Comments are closed.