How to let the role “editor” to control the menu?

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

Display Username as parent menu item

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

menu customization

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()

Menu Underline shows without Hover after adding subitems

.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.

Convert HTML code to WordPress menu

If you want to display a custom menu, you need to use the wp_nav_menu function. I’m also assuming you have registered a custom menu with the register_nav_menus function eg: register_nav_menus( array( ‘main-menu’ => ‘Main Menu’, ) ); A basic example would be wp_nav_menu(array( ‘menu’ => ‘Main Menu’, ‘theme_location’ => ‘main-menu’, ‘container’ => ‘nav’, )); Change … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)