Jump to content

[SOLVED] Horizontal menu - removing the category name shown when hovering


the_lyall

Recommended Posts

Hello!

 

I've found this forum a great resource for solving my Prestashop problems, but I have a small issue that's a bit annoying. I have the horizontal menu along the top of my store, and when hovering over one of the category (or other link) names it highlights as it should but it also displays the name in a separate pop-up as shown in the attachment.

 

I got around this in a previous .NET MVC project by replacing 'title' with 'data' but I'm not familiar enough with Prestashop or PHP to do so without assistance.

 

Does anyone know how to stop this little niggle of mine?

 

Thank you

 

 

post-1052606-0-93635700-1437256598_thumb.png

Edited by the_lyall (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

 I have resolved this by adding the following script to the global.js file in themes/mytheme/js/ folder

$(document).ready(function () {
    var links = document.getElementsByTagName('a');
    for (var i = 0; i < links.length; i++) {

        links[i]._title = links[i].title;
        links[i].onmouseover = function () {
            this.title = '';
        }
        links[i].onmouseout = function () {
            this.title = this._title;
        }
    }
});

Works like a charm!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...