0

I have 3 menu positions primary, side and footer in functions.php. ho do i select side menu position and add condition to that menu only?

function abc_menus() {
register_nav_menus(
    array(
        'primary' => __( 'Primary Menu' ),//Main Menu
        'side'=>__('Our Holidays'),//Menu on side
        'footer'=>__('Footer '),//First Footer Menu

    )
);
}
add_action( 'after_setup_theme', 'abc_menus' );
0

In your theme file place below code there where you need.

<?php wp_nav_menu( array( 'theme_location' => 'side' ) ); ?>

https://codex.wordpress.org/Navigation_Menus#Display_Menus_on_Theme

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.