Due to the nature of the placeholder, in certain templates, it is not styled resulting in some distasteful layout. The normal workaround is to use the link-url menu item to #. However, I post in Sporticus concluded with a better solution which I am going to demonstrate here.
Joomla 1.0x
1. Login into your Administrator
2. Go to Menu > mainmenu > New
3. Choose link-url as your Menu item
4. In the URL field, insert javascript:void(0)
5. Fill in your other details and save.
Joomla 1.5
1. Login into your Administrator
2. Go to Menus > Main Menu > New
3. Choose "External Link" as your Menu item
4. In the link field, insert javascript:void(0)
5. Fill in your other details and save.
I have a very very large menu structure and found that when I remove the "href=" from this code:
case 3:
// don't link it
$txt = '<a href=\"#\" '.$active.' '. $id .$title.'><span>'. $txt .'</span></a>';
break;
Found in the ja_cssmenu.php that my placeholder errors are solved, without having to use another method like the - link URL and javascript:void(0); method.... does anyone know if removing this "href=" will cause any other unexpected problem?
The problem with this solution is that you get a hand on the top menu item indicating that you can click the top menu item and do something when all you want is the submenus to display, which will do something when clicked. It is better to leave the Link blank for the top menu and you get the same affect, the submenus appear, but you don't get the hand on the top menu.