Gracia Theme Navigation
-
I’m not sure if this thread is in the right section, but I really need up with the Gracia theme from [ link removed, that site is not welcome here ]. My client somehow ended up deleting all of the horizontal navigation in the purple and I can’t figure out how to bring it back. It doesn’t seem like there’s a widget for the horizontal nav and I’m pretty sure she didn’t mess with the coding…. PLEASE HELP!
-
I’m pretty sure that I found where the menu is generated in the code for the “originalheader.php” file. I just don’t know how to add the pages:
<div id="pagemenucontainer"> <ul id="pagemenu"> <li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li> <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?> </ul> </div>
Have your missing menu items been assigned parent pages?
No, should I do that and assigned an order number to them?
This bit,
wp_list_pages('depth=1&sort_column=menu_order&title_li=' );
Specifically this,
depth=1
Will only pick up the top level pages, so no, don’t assign parent pages to pages you want shown in the navigation.
Further reference on
wp_nav_menu
function found at http://codex.wordpress.org/Function_Reference/wp_nav_menu#ParametersThe problem with not assigning parent pages is that some of the pages do have parent pages. Before this navigation was (somehow) deleted, it had drop-down menus. So how would I apply the pages that don’t have parent pages to “wp_list_pages” ?
Hey, could someone help me create a horizontal navigation drop-down menu for the Gracia theme? The following is in my header.php code:
<div class="navcontainer"> <?php if(function_exists('wp_nav_menu')) { wp_nav_menu( 'depth=1&theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default'); } else { menu_2_default(); } function menu_2_default() { ?> <ul id="nav"> <li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li><!-- <?php wp_list_pages('depth=2&hide_empty=0&orderby=name&order=ASC&title_li=' ); ?>--> </ul> <?php } ?> </div>
The second part is commented out because it reveals ALL of the pages on the website. However, I don’t want it to do that. There are parent and children (and even grandchildren) pages and I want to create drop-down menus that reflects that hierarchy. Please help!
I’ve created a custom menu that shows the hierarchy, so is there a way to call that custom menu (which is called “Navigation”)?
- The topic ‘Gracia Theme Navigation’ is closed to new replies.