WordPress.org

Forums

How to remove the home from the wordpress menu? (1 post)

  1. naveenbos
    Member
    Posted 1 year ago #

    I am using appdev theme, how can i remove the home page from the menu item both mobile and primary menu? there is a function called mo_display_primary_menu($chosen_menu = '') it is displaying the menu

    function mo_display_primary_menu($chosen_menu = '') {
        echo '<div id="primary-menu" class="dropdown-menu-wrap clearfix">';
    
        wp_nav_menu(array('menu' => $chosen_menu,
            'theme_location' => 'primary',
            'container' => false,
            'menu_class' => 'menu clearfix',
            'fallback_cb' => false
        ));
    
        echo '</div><!-- #primary-menu -->';
    }
    how can i remove the home from this menu please help

Topic Closed

This topic has been closed to new replies.

About this Topic