Ok so here it is lets add some titles to our menu links
On line 131 of modules-> mod_mainmenu.php find
| Code: |
default:
// open in parent window
$txt = '<a href="'. $mitem->link .'" class="'. $menuclass .'" '. $id .'>'. $mitem->name .'</a>';
break;
|
and replace with
| Code: |
default:
// open in parent window
$txt = '<a href="'. $mitem->link .'" class="'. $menuclass .'" '. $id .'title="'.$mitem->name.'- '.$mosConfig_sitename.'">'. $mitem->name .'</a>';
break;
|
you will see that in this new line we have
| Code: |
.$mosConfig_sitename.
|
This will add your websites title to the menu link title also, which helps in branding your website. But in oreder to get this functio working correctly you will need to change the following:
find on line 25 or near there
| Code: |
global $Itemid, $mosConfig_live_site, $mainframe;
|
and relace with:
| Code: |
global $Itemid, $mosConfig_live_site, $mosConfig_sitename, $mainframe
|
NOW back up your server file just incase, and then upload and overwrite your mod_menumodule.php and whala there you go title tags for your menu links