WordPress.org

Ready to get started?Download WordPress

Forums

Dropdown Menus
[resolved] Dropdown menu doesn't go to new page with option is selected (8 posts)

  1. madelynn
    Member
    Posted 2 years ago #

    I'm using the dropdown menu in a responsive layout design. It replaces the full-size navigation on mobile devices. The menu correctly displays, but when an option is selected it doesn't change to that page/url.

    Any ideas? Maybe I didn't implement correctly?

    Make your browser narrower than 600px and you can see the dropdown menu: http://www.browndogcreative.com/BDC2012/

    Thanks!

    http://wordpress.org/extend/plugins/dropdown-menus/

  2. madelynn
    Member
    Posted 2 years ago #

    The link is now http://www.browndogcreative.com as we've had to make the design live. Please try to respond as soon as possible!! I appreciate it.

  3. sanchothefat
    Member
    Plugin Author

    Posted 2 years ago #

    So sorry for the delay madelynn :/

    Can you confirm that your theme has the wp_footer() function in the footer.php?

  4. madelynn
    Member
    Posted 2 years ago #

    It does not use that function. Do I need to add it somehow?

  5. sanchothefat
    Member
    Plugin Author

    Posted 2 years ago #

    All WordPress themes should have a call to wp_head() in between the <head></head> tags and a call to wp_footer() just before the closing </body> tag otherwise plugins won't be able to work.

    Edit your footer.php file - just above the closing </body> tag add:

    <?php wp_footer(); ?>

    That's it!

  6. sanchothefat
    Member
    Plugin Author

    Posted 2 years ago #

    Oh and one more thing - if the theme you purchased didn't have that line of code in it you might want to notify the author as it's a pretty serious oversight.

  7. madelynn
    Member
    Posted 2 years ago #

    Ah, that worked perfectly. And yes, we did purchase the theme, so I will be notifying the theme author!

    Thank you again!

  8. rogeriomello
    Member
    Posted 1 year ago #

    Hello, Sancho. I'm having the same problem as madelynn, but I have the wp_footer function on my footer.
    What happens is that the menu dropdown is showing correctly, but if we click on any link, goes to a "page not found".
    Just for the record, I'm using it with the following code:

    <?php if (function_exists( 'dropdown_menu' ) ) : ?>
        <?php dropdown_menu( array('dropdown_title' => '-- Menu Sardinha17 --', 'indent_string' => '- ', 'indent_after' => '','container' => 'div', 'container_class' => 'menu-responsivo', 'theme_location'=>'menu_superior') ); ?>
    <?php endif; ?>

    with "menu-superior" declared in my functions.php as the code bellow:

    add_theme_support('menus');
    	register_nav_menus(array('menu_superior' =>'Menu Superior'));

    Any ideas on what could be happening?
    Thanks in advance,
    Rogério Mello.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic