Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1447068

    Is there a way to create a second menu and have it appear as a hamburger menu and only on one half of the page? The other half should contain a logo.
    This is for a landing page. There will be no links to the main site, only anchor links to skip down the page.

    Regards
    Nina

    #1447294

    Hey Advantage09,
    Thank you for your patience, you can create a second menu and use it in the setting Enfold Theme Options ▸ Main Menu ▸ General ▸ Alternate Menu For Mobile I believe that this will achieve what you are trying to do.

    Best regards,
    Mike

    #1447444

    Well – if that is what I think you want, then there is no trivial solution.
    i did it here for very small screens (mobile device screen width) on : https://guenterweber.com/datenschutz/
    because the widget ( second menu) on that page needs more place – that is not there on small screens.

    Base of even the Enfold Hamburger (av-hamburger–spin) for main-menu is : https://jonsuh.com/hamburgers/

    #1447534

    Thanks for your reply. To Mike, This is not going to work, I am looking for separate menu just for one page with no links back to the rest of my site. What would be ideal is if the fullwidth submenu could fit into a single column layou element.
    Guenni007, I will take a closer look at your suggestion.

    Regards
    Nina

    #1447543

    Hi,
    To show a different menu on one specific page, first make the menu that you wish and hover over the Delete Menu link and at the bottom of the page your browser should show the source of the link, looks for &menu=XX the XX will be a number, in my example it is 11
    Enfold Support 6013
    Next we need to know the page ID, so hover over the admin menu Edit Page in the admin toolbar, and at the bottom the browser should show the source link, look for ?post=XX again the XX will be a number, in my example it is 3792
    Enfold Support 6015
    Now we will add this code to the end of your child theme functions.php file in Appearance ▸ Editor or if you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    use wpcode php snippet and activate
    and ensure that it is activated, then add this code and save.

    add_filter( 'wp_nav_menu_args', 'ppen_nav_menu_args' );
    function ppen_nav_menu_args( $args = '' ) {
    if($args['theme_location'] === 'avia') {
    if( is_page( 3792 ) ) {
    $args['menu'] = '11';
    }
    return $args;
    }
    }

    Now that page will have our new menu.

    Best regards,
    Mike

    #1447554

    so it is not a second menu meant but a different one ?

    #1447559

    A different menu, ment for just one page.
    I am trying a few things out to see if I can get something that will work.

    Regards
    Nina

    #1447594

    Hi,
    This will show a different menu, specific for just one page.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.