Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Welcome to the new Community Forums!

Existing Users: As an additional security precaution measure, please reset your password and login with your new password given to you via your email.

New Users: You are required to link with either your Facebook, Twitter, Google or OpenID account to register.

If you have any other issues, please send the administrator an email at support [ a t ] arrastheme.com
jQuery Mega Menu for Project AR2
  • Hi there,

    first of all, thanks for the great Work with AR2. Looks really great. I updated and modified my arras 1.5 theme to AR2 just yesterday :)


    Now here is my 'problem':

    I'm trying to use the jQuery Mega Menu with AR2 ( http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/ ).

    According to the Plugin documentation for using it below the header (just like the standard menu) i have to register a new widget and put the code in the header.php of the theme.

    http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/


    --- --- --- --- --- --- --- --- --- --- --- --- --- ---

    1. To register the new widget you need to open the functions.php file in your WordPress themes editor.

    Add the following code to the functions file, making sure you place it in between php tags:

    if ( function_exists('register_sidebar') ){
    register_sidebar(array(
    'name' => 'my_mega_menu',
    'before_widget' => '<div id="my-mega-menu-widget">',
    'after_widget' => '</div>',
    'before_title' => '',
    'after_title' => '',
    ));
    }


    2. Find the location where you want to place the menu and add the following code to the header.php file:

    <?php /* Widgetized sidebar */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_mega_menu') ) : ?><?php endif; ?>


    --- --- --- --- --- --- --- --- --- --- --- --- --- ---

    I did that (hopefully). the first part worked, an WP showed me the new Widget area.

    But I can't get the Menu in the correct Location. I Want it to be exactly where the 'normal' main-menu ist (replace it with the jquery mega menu).


    Can anybody help me how to do it correctly!?`

    Here is my demo-site where i tested it - The Result is:

    http://consoleroz.byethost7.com/


    Thanx a Lot =)










  • I tried this in header.php:

    replaced:


    <?php
    wp_nav_menu( array(
    'sort_column' => 'menu_order',
    'menu_class' => 'menu clearfix',
    'theme_location'=> 'main-menu',
    'container' => false,
    'fallback_cb' => 'ar2_nav_fallback_cb'
    ) );
    ?>


    with:


    <?php /* Widgetized sidebar */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_mega_menu') ) : ?><?php endif; ?>