Polylang plugin showing flag images htmls as titles


On my website www.mrbisaggio.com based on Activello I am using Polylang plugin for 2 languages. When I point the mouse on the flag icon (menu) I see the long image html.

Is there a way to get rid of this title?

Hi there,

You will need to add a different title attribute to the link from the polylang plugin if you can and if you cannot then use some custom JS to alter the title attribute on the image when the page loads.

You can maybe use this plugin to add your custom JS to the footer or header area: Simple Custom CSS and JS – WordPress plugin | WordPress.org

Hope you can work it from there.

I have added the following code:

jQuery(document).ready(function( $ ){
$(".lang-item a").removeAttr(“title”);

at the bottom of header.php of Activello and the issue is solved now.

Thanks for help!

Hi, there

Don’t forget to use a child theme
Now I will now close the topic and mark it as resolved. Feel free to contact us again Thanks!