• Resolved webpinoy

    (@webpinoy)


    Hello. I am using the Theme GreenPoint Milanda 1.4 for WordPress. I am a fan of the Theme, but have one change to make and can’t find where I can do it.
    At the top below the header graphic is the menu showing the sites following the structure. I have many sites well structured. But I like that within the menu below the header should appear only the MAIN sites (NO subsites). Where can I do this little change?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webpinoy

    (@webpinoy)

    I am still working on that problem butcan not find the right solution yet.

    I found this http://www.wordpressmax.com/wordpress-guide/customize-wordpress-header-navigation-bar

    and was working the code out which should work in my header navigation. The code within the given template is

    <?php wp_list_pages('title_li='); ?>

    Following the instructions I try to include only the pages 15, 17, 19, 82 and 2 (so that the sub pages will no more be listed within the header navbar but the main pages only) and came up with this:

    <?php wp_list_pages(‘title_li=&depth=2&sort_column=menu_order&include=15,17,19,82,2′); ?>

    But it does not work, giving me a syntax error:

    Parse error: syntax error, unexpected ‘=’ in /wp-content/themes/greenpoint-milanda/header.php on line 73

    Can anybody help please how to get this fixed? That would be great!

    Thread Starter webpinoy

    (@webpinoy)

    Hahaha! I found the solution, very simple:

    <?php wp_list_pages('title_li=&depth=1'); ?>

    The addition, depth=1, tells the tag to only generate the first level of menu items. All subpages are ignored.

    So, problem solved! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customize menu below the header pic’ is closed to new replies.