How to view menu and submenus in URL
If you dont want to do any back end coding you can create a custom link in the menu panel and then drag the submenu3 under the msubmenu2 and then all under menu1
If you dont want to do any back end coding you can create a custom link in the menu panel and then drag the submenu3 under the msubmenu2 and then all under menu1
Add this to your functions.php // Allow editors to see Appearance menu $role_object = get_role( ‘editor’ ); $role_object->add_cap( ‘edit_theme_options’ ); function hide_menu() { // Hide theme selection page remove_submenu_page( ‘themes.php’, ‘themes.php’ ); // Hide widgets page remove_submenu_page( ‘themes.php’, ‘widgets.php’ ); // Hide customize page global $submenu; unset($submenu[‘themes.php’][6]); } add_action(‘admin_head’, ‘hide_menu’); … Read more
If you want to modify html markup and change menu title you can create your own walker_nav class as below. Here i put the fontawesome icon fa-home icon for Home menu and more icons before dropdown menus. class Sunrise_Universal_Walker_Nav_Primary extends Walker_Nav_menu { function start_lvl( &$output, $depth = 0, $args = array() ){ //ul $indent = … Read more
Add container index in args and mention it header tag.
Works fine for me, nothing is replaced, it’s just appended to the navigation. Are you sure that it’s not just a styling-issue? Have you looked at the document source to check if it really is replacing the other menu items? What exactly do you mean by making it the parent item? Do you want to … Read more
wp_dropdown_categories() has the taxonomy parameter, which defaults to category, but can be used to retrieve custom taxonomies. Exemplary usage: wp_dropdown_categories([ ‘taxonomy’ => ‘custom-taxonomy-name’ ]);
The easiest would be to serve 2 different menus and assign them different css classes, so you can style them differently. if ( is_home() ) { // use home menu wp_nav_menu( array( ‘menu’ => ‘home’, ‘menu_class’ => ‘menu_home’ ); } else { // use other menu wp_nav_menu( array( ‘menu’ => ‘nohome’, ‘menu_class’ => ‘menu_no_home’ ); … Read more
I’m not sure, but if I understand correctly you should create a second menu which is only visible on your Spanish language page. if (is_page($english_page_id)) { wp_nav_menu( array(‘menu’=>$english_menu) ); } if (is_page($spanish_page_id)) { wp_nav_menu( array(‘menu’=>$spanish_menu) ) } is_page() wp_nav_menu()
.nav-menu .current-menu-ancestor > a {text-decoration:none} will help. Alternatively, use .nav-menu .current-menu-ancestor > a {text-decoration:none !important;}. Please change the .nav-menu with the class name that you have used Please let me know if it works.
I found the plugin, “restrict categories”.