14:48:10

Web Design Studio Ltd
Second Floor
28 Orchard Road
St Anne’s
Lancashire
FY8 1PF


Tel:
  01253 206404
Tel:  01253 721000

The Joomla Community

                 A place for all Joomla People to hang out.

 

 

 

 

 

 

 

 

Re:Add Menu title tags (1 viewing) (1) Guest
Add Menu title tags
by Joomla Pro 3 Years, 4 Months ago
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
The administrator has disabled public write access. | Report to moderator   Logged Logged  
Re:Add Menu title tags
by chrislee 3 Years, 4 Months ago
Thank for this is worked just like you said it would, a great addition to my site to help with seo
The administrator has disabled public write access. | Report to moderator   Logged Logged  
Re:Add Menu title tags
by pietjepel 2 Years, 9 Months ago
Hello i have made a core improvement for this, it includes the titletag modification to a menu-item. A anchor modification is also included to link to articles on place by lets say h1, h2, h3 or a other html tag.

Go to http://www.w3studio.nl/joomla-sites/downloads.html. It is dutch, but you can translate it to english by entering the url here http://translate.google.com/translate_t?hl=en&sl=nl&tl=en#

Best regards,
W3studio webdesign & webdevelopment
The administrator has disabled public write access. | Report to moderator   Logged Logged  
Re:Add Menu title tags
by pietjepel 2 Years, 9 Months ago
pietjepel wrote:
QUOTE:
Hello i have made a core improvement for this, it includes the titletag modification to a menu-item. A anchor modification is also included to link to articles on place by lets say h1, h2, h3 or a other html tag.

Go to http://www.w3studio.nl/joomla-sites/downloads.html. It is dutch, but you can translate it to english by entering the url here http://translate.google.com/translate_t?hl=en&sl=nl&tl=en#

Best regards,
W3studio webdesign & webdevelopment


Sorry it is for joomla 1.5
The administrator has disabled public write access. | Report to moderator   Logged Logged  
Re:Add Menu title tags
by Joomla Pro 2 Years, 9 Months ago
Thank for that i will give it a try, and if all appears to be ok i will add to all other sites
The administrator has disabled public write access. | Report to moderator   Logged Logged  
Re:Add Menu title tags
by jsharweb 2 Years, 7 Months ago
nice post n reply.....

Thanks...
-----------------------------
Joomla design
The administrator has disabled public write access. | Report to moderator   Logged Logged  
       
Joomla Web Designers | Joomla Developers | Joomla Training