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

    Hi
    We want to have a different navigaion on one page as on all other pages.
    We found some old forum posts here but they are at least 3 years old, so perhaps today is another solution than to use a unknown plugin?
    How we can have a different navigation on one page as on all other pages with the latest Enfold version?
    Thanks very much.
    Best regards
    Mike

    #1344261

    Hey Michael,
    To have one page show a different menu than the other pages, Try this function to the end of your functions.php file in Appearance ▸ Editor:

    add_filter( 'wp_nav_menu_args', 'custom_nav_menu_args' );
    function custom_nav_menu_args( $args = '' ) {
    if($args['theme_location'] === 'avia') {
    if( is_page( 626 ) ) {
    $args['menu'] = 'Footer Menu';
    }
    return $args;
    }
    }

    you will need to change the page ID and the menu to show.

    Best regards,
    Mike

    #1344352

    Hi Mike
    Thanks very much.
    The code works very well.
    You can close the issue.
    Best regards
    Mike

    #1344382

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Different navigation on special page’ is closed to new replies.