Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21520

    Hello everyone i’m trying to put my sub menu that is on the socket under the main i think i made it clear in title of the thread haha, i saw it on this website : http://www.delimbo.com

    I watched the code a bit in the header.php :

    echo “<div class=’main_menu’ data-selectname=’”.__(‘Select a page’,'avia_framework’).”‘>”;

    $args = array(‘theme_location’=>’avia’, ‘fallback_cb’ => ‘avia_fallback_menu’);

    wp_nav_menu($args);

    echo “</div>”;

    I tried to duplicate it and replaced the class by sub_menu but it gave me a weird thing, anyone have a lead on how to accomplish this ?

    Thanks in advance

    #112129

    Hi,

    In header.php replace:

    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu');
    wp_nav_menu($args);
    echo "</div>";

    with:

    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu');
    wp_nav_menu($args);
    echo "</div>";

    echo "<div class='sub_menu'>";
    $args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'depth'=>1);
    wp_nav_menu($args);
    echo "</div>";

    and in footer.php remove:

    echo "<div class='sub_menu'>";
    $args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'depth'=>1);
    wp_nav_menu($args);
    echo "</div>";

    #112130

    Thank you very much Dude !! you guys are great help !!!!

    #112131

    Hi!

    Glad that I could help you :)

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Move the sub menu in the socket under the main menu’ is closed to new replies.