Fix for Non-Clickable Main Menu Categories:
Check Menu Setup:
Go to Appearance > Menus.
Ensure parent categories are linked to pages.
Add CSS Fix:
Go to Appearance > Customize > Additional CSS.
Add:
css
Copy code
.menu-item-has-children > a {
pointer-events: auto;
cursor: pointer;
}
Add JavaScript Fix:
Use WPCode or theme customizer to add:
javascript
Copy code
document.querySelectorAll(‘.menu-item-has-children > a’).forEach(item => {
item.addEventListener(‘click’, function(event) {
if (!this.href || this.href === “#”) {
event.preventDefault();
} else {
window.location.href = this.href;
}
});
});
Check Theme Settings:
Go to Appearance > Customize > Menus.
Ensure parent menu links are enabled.
Use a Plugin:
Install Max Mega Menu for advanced menu control.
Test for Plugin Conflicts:
Deactivate plugins one by one to identify issues.
Switch Themes:
Temporarily switch to a default theme (e.g., Twenty Twenty-Three) to test functionality.