Skip to content
WJunction - Webmaster Forum

Please help me adding a drop down menu

Status
Not open for further replies.

Divvy

Experienced Member
806
2009
18
Hi friends,

Can someone please help me adding a drop down menu in this site?
PHP:
http://www.ticka-apparel.com.au/

I did everything fine here:
mJrxkFw.png


The problem is that Im using the theme Alexandria 2.0.1 from:
PHP:
http://www.themealley.com

And they said that this theme dont support drop down menus (level 2)

Is not possible to fix this?
I am using wordpress 3.6.1...

This is the code that my theme header.php have:
Paste2.org - Viewing Paste HKKmY9J9

I think that the most important code is this one, right?
PHP:
<nav id="site-navigation" class="main-navigation" role="navigation">
                    <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'alexandria' ); ?>"><?php _e( 'Skip to content', 'alexandria' ); ?></a></div>
        
                    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 1, 'menu_id' => 'main-nav', 'fallback_cb' => 'alexandria_backupmenu'  ) ); ?>
                </nav><!-- #site-navigation -->

Or simply this one:
PHP:
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 1, 'menu_id' => 'main-nav', 'fallback_cb' => 'alexandria_backupmenu'  ) ); ?>

Can someone please help me?
I really appreciated :-)

Best regards,
Tim
 

2 comments

You need to remove the 'depth' => 1, from the code, if your site has CSS for the drop down links, it'll work fine. If not, you will have to style it.
 
Status
Not open for further replies.

About the author

D
Experienced Member · Joined
806
Messages
18
Reactions
18
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom