Prevent alt-text from displaying on link hover

Posted in: Newspaper
Post count: 110

On most of the hyperlinked elements across the site, the alt-text (I think) is popping up whenever the mouse is hovered over. See the grey box popping up at the cursor: https://imgur.com/a/IGc5uR0

How can I disable this?

Post count: 27744

Hello,

That is the tooltip. Please use this js code in order to remove it:
jQuery(document).ready(function($) {
$('a[title]').on('mouseenter', function () {
var $this = $(this);
$this.attr('title-cache', $this.attr('title'));
$this.attr('title', '');
});

$('a[title]').on('mouseleave', function () {
var $this = $(this);
$this.attr('title', $this.attr('title-cache'));
$this.attr('title-cache', '');
});

$('a[title]').on('click', function () {
var $this = $(this);
$this.attr('title', $this.attr('title-cache'));
$this.attr('title-cache', '');
});

$('#lightboxOverlay').on('close', function () {
var $this = $(this);
$this.attr('title', $this.attr('title-cache'));
$this.attr('title-cache', '');
});
});

The code must be inserted in here: https://www.screencast.com/t/CnqlDUbmQK

Thank you!

Post count: 110

Wonderful thank you! The tool-tip is still popping up on images, can that be disabled as well?

Post count: 27744

Hello,

This code is also applied to images of the modules -> https://i.imgur.com/ckO5Bum.png

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.