Suggestion: No link for top level expandable left menus

It might just be me, but whenever I click one of the side menus, such as “Sites”, and the submenu expands down below it, my first reaction is to click on the desired submenu, usually “Manage Sites”, but there is a delay while the first click loads a page until it’s possible to click the desired link, or some other issue related to clicking the appropriate link. The small down-arrow is very tiny, but it behaves differently if directly clicked.

Hello @libbynotzoey. In the meantime, you can easily do this by adding the following lines of code to the Custom Dashboard extension, in tab for JS:

/**
 * After DOM Loaded
 */
 document.addEventListener('DOMContentLoaded', () => {
	/**
	 * Remove href attribute for Left Menu Titles Items
	 */
	const leftMenuTitlesItems = document.querySelectorAll('#mainwp-main-menu .item > a.title');	
	if (leftMenuTitlesItems) {
		leftMenuTitlesItems.forEach(item => {
			if (item.querySelector('i.dropdown')) {
				item.removeAttribute('href');
			}
		});
	}
});
1 Like

That’s great! Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.