Support » Plugin: Dropdown Menus » [Plugin: Dropdown Menus] How and where to include?

  • Resolved johanna2patricia

    (@johanna2patricia)


    Hi,
    I am trying to implement the dropdown menu in a theme.
    The widget function works.
    But I want it to display in the headerbar as a dropdown.
    When I insert this code in the functions.php I get an error.
    `<?php
    if ( ! function_exists( ‘dropdown_menu’ ) )
    include( ‘dropdown-menus/dropdown-menus.php’ );
    ?>
    What am I doing wrong?
    What code and where do I insert?
    My testpage:

    Johanna

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • From my very limited understanding, you call the function like this:

    <?php
      dropdown_menu( array(
          'theme_location' => 'main-mobile',
          'dropdown_title' => 'MENU',
          'indent_string' => '- ',
      ) );
    ?>

    The main-mobile is the name you give your menu in the WordPress Appearance > Menus.

    hth, Jake

    Thanks Jake!
    In the meantime I found another dropdown menu and got hat to work.

    Johanna

    johanna2patricia which plugin did you end up using?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Dropdown Menus] How and where to include?’ is closed to new replies.