• 0

[wordpress] Navigation menu


Question

Hey guys, Fairly new to wordpress, Need some help with the nav menu. Default theme has a nice and smooth "drop-down" menu. I have a theme i have made from someone elses (about 2% of their code remains xD)

<div id="access" role="navigation">
<?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
</div><!-- #access -->

When ever i add this to my page as a replacement for...

<ul>
<?php if ( !motion_hide_homelink() ) : ?><li class="page_item<?php echo ( is_home() || is_front_page() ? ' current_page_item' : '' ); ?>"><a href="<?php echo get_option( 'home' ); ?>/">Home</a></li><?php endif; ?>
<?php wp_list_pages('depth=1&title_li=0&sort_column=menu_order'); ?>
		</ul>

The entire page screws up, Any ideas?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Before:

b3b99b7015.png

After:

196e05111f.png

It's not as bad as the error i was getting before hand, The entire content div was shifting its position down and left by 200-300px.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.