How to remove the popup box from menu

October 2012 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jul 27, 2013 7:26 pm
Reply with quote
Report this post
Hello guys! When I hover over the menu items a popup message appears with the name of the menu item.
For instance when you hover over the menu item Typography, a popup box appears named "Typography".
Do you know if there is way I can disable that box in all menu items?
Thank you in advance.
User avatar
Fresh Boarder

GK User
Sat Jul 27, 2013 7:52 pm
Reply with quote
Report this post
Popup message - do You mean standard tooltip that shows on every HTML element with title attribute?
User avatar
Moderator

GK User
Sat Jul 27, 2013 8:33 pm
Reply with quote
Report this post
Cyberek wrote:Popup message - do You mean standard tooltip that shows on every HTML element with title attribute?


Yeah. That thing... I'm sorry for not explaining it well. I need to get rid of it but I don't know how...
Thanks for helping! :)
User avatar
Fresh Boarder

GK User
Mon Jul 29, 2013 9:58 pm
Reply with quote
Report this post
You can place this simple code:
Code: Select all
$('[title]').removeAttr('title');

inside:
Code: Select all
window.addEvent('load', function(){
(...)
}

function of /templates/gk_startup/js/gk.scripts.js (perhaps in first line of this function) - it will remove all title attributes, disabling the tooltips same way.
User avatar
Moderator

GK User
Tue Jul 30, 2013 2:53 am
Reply with quote
Report this post
Hey Cyberek,
thanks for helping.

In my '/templates/gk_startup/js/gk.scripts.js' there is not such a function:
Code: Select all
window.addEvent('load', function(){
}

so I can't place the code that you gave me.


But, I managed to disable the tooltip by deleting the 345th line:
Code: Select all
$title = "title=\"$tmpname\"";

of the '/templates/gk_startup/lib/menu/GKBase.class.php'. I don't really know if I should do it but it works...
Any thoughts on that?
User avatar
Fresh Boarder

GK User
Tue Jul 30, 2013 8:11 pm
Reply with quote
Report this post
Doing it with JS is more elegant and SEO friendly, but if You don't care about SEO too much - this will do.
User avatar
Moderator


cron