Need help with adding custom wordpress menu and sub-menu

Use this code bellow to dynamic you nav: <?php $args = array( ‘theme_location’ => ”, ‘menu’ => ‘Main’, ‘container’ => ‘false’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘cs-main-navigation cs-clearfix’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘items_wrap’ => ‘<ul … Read more

Get Sub-Menu Dropdown to Show Over Page Content

There is an overflow issue with your menu items. To solve it, head over to Appearance > Customize and add this piece of CSS to your custom CSS: .fusion-main-menu{ overflow:visible!important } This will allow your submenu to overlap the DIV while hovered.

How can I create this menu with wp_nav_menu()?

This can achieve with a nav walker. I used this. I am stepping according to the mentioned. Put navwalker (wp-bootstrap-navwalker.php) in your theme root Call to the navwalker in functions.php file. require_once(‘wp-bootstrap-navwalker.php’); Create your menu in WordPress Backend (Appearance -> Menus) In your menu area, according to me in header.php wp_nav_menu( array( ‘menu’ => ‘main_menu’, … Read more

How to Hide/Remove Pages section in Menus (Dashboard)

You can actually hide Pages (and Posts, Custom Links, or Categories) using the Screen Options tab at the top of the WordPress Dashboard while on the Menus editor screen. Just open that Screen Options tab and uncheck the box corresponding to Pages. If you want to make sure that option never gets checked again, you … Read more