Ambiance Pro – showing sub menus

Community Forums Forums Design Tips and Tricks Ambiance Pro – showing sub menus

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Dag-Erling 4 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #104896

    Dag-Erling
    Participant
    Post count: 49

    Hey

    I’m working with the the Ambiance Pro theme for a client. It seems like the sub-menu is disabled somewhere but I can’t figure out where that is.

    Anyone had any experience with this?

    • This topic was modified 4 months, 1 week ago by  Dag-Erling.
    • This topic was modified 4 months, 1 week ago by  Dag-Erling.
    http://www.dagerlingjensen.no/montasje
    #104899

    braddalton
    Participant
    Post count: 9734

    Line 148 functions.php
    [php]
    /* Reduce the primary navigation menu to one level depth
    add_filter( ‘wp_nav_menu_args’, ‘ambiance_primary_menu_args’ );
    function ambiance_primary_menu_args( $args ){

    if( ‘primary’ != $args['theme_location'] )
    return $args;

    $args['depth'] = 1;
    return $args;

    }
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #104903

    Dag-Erling
    Participant
    Post count: 49

    Thank you :) That resolved it.

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

You must be logged in to reply to this topic.