• An empty (text)field appears when mouse-hovering a link in a widget made sticky with the plugin. Widget is navigationmenu.

    How to let the field be gone or stay hidden?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter kim19

    (@kim69)

    Never mind, found a small piece of javascript that seems to work

    var anchors = document.querySelectorAll('a[title]');
    for (let i = anchors.length - 1; i >= 0; i--) {
        anchors[i].addEventListener('mouseenter', function (e) {
            anchors[i].setAttribute('data-title', anchors[i].title);
            anchors[i].removeAttribute('title');
    
        });
        anchors[i].addEventListener('mouseleave', function (e) {
            anchors[i].title = anchors[i].getAttribute('data-title');
            anchors[i].removeAttribute('data-title');
        });
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Empty field appears on hovering links in sticky widget’ is closed to new replies.