• Hello.

    I have put a Language Switcher in my top menu. Now when the mouse hovers over it, I get an extremely long, multi-line tooltip that appears to contain HTML source. It looks very bad and makes it hard to use the menu.

    Someone asked this before and marked the issue as settled. But the solution they went with seems to disable all tooltips in wordpress. I don’t want to do that. I just want to clean up or remove the tooltip in the language switcher. It seems to me this might involve a change to Polylang. On the other hand, I am surprised few others are talking about this issue in the forum.

    Any insights?
    .pat styles

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Hi,

    I get an extremely long, multi-line tooltip that appears to contain HTML source

    I guess this the flag. Some themes rewrite the nav menu walker and are incompatible with images in menu items. Try removing the flags in the language switcher options.

    • This reply was modified 8 years, 2 months ago by Chouby.

    Hi, I found the same issue, here’s what I found in the html code:

    <a 
    title="<img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYmSYyMDwgwEE/jEw/GF4mvT0HyqQUlX9B5aEIIAAYmH4wlDtWg1SDwT//0lKSv7/D+T9/w+nYmL+//79/88fIPll0yaAAGJhYAGJP/n69O+/v0CAUAcHt2////ULqJpRVhZoA0AAsQCtAZoMVP0HiP7+RlcNBEDVYA0Mv38DNQAEEMj8vwx//wCt/AdC/zEBkgagYoAAYgF6FGj277+///wlpAEoz8AAEEAgDX/BZv/69wuoB48GRrCTAAKICajh9//fv/6CVP/++wu7BrDxQFf/YWAACCCwk0BKf0MQdg1/gBqAPv0L9ANAALEAY+33vz+S3JIgb/z5C45CBkZGRgY4UFICKQUjoJMAAoiRoZSB4RMojkHx/YPhbNVZoM3AOISQQPUK9vaQOIYAgAADAC5Wd4RRwnKfAAAAAElFTkSuQmCC&quot; title=&quot;Italiano&quot; alt=&quot;Italiano&quot; />"
    
    href="***/***/" hreflang="it-IT" lang="it-IT">
    
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYmSYyMDwgwEE/jEw/GF4mvT0HyqQUlX9B5aEIIAAYmH4wlDtWg1SDwT//0lKSv7/D+T9/w+nYmL+//79/88fIPll0yaAAGJhYAGJP/n69O+/v0CAUAcHt2////ULqJpRVhZoA0AAsQCtAZoMVP0HiP7+RlcNBEDVYA0Mv38DNQAEEMj8vwx//wCt/AdC/zEBkgagYoAAYgF6FGj277+///wlpAEoz8AAEEAgDX/BZv/69wuoB48GRrCTAAKICajh9//fv/6CVP/++wu7BrDxQFf/YWAACCCwk0BKf0MQdg1/gBqAPv0L9ANAALEAY+33vz+S3JIgb/z5C45CBkZGRgY4UFICKQUjoJMAAoiRoZSB4RMojkHx/YPhbNVZoM3AOISQQPUK9vaQOIYAgAADAC5Wd4RRwnKfAAAAAElFTkSuQmCC" title="Italiano" alt="Italiano">
    
    </a>

    The “title” it’s completely wrong with a img inside

    Plugin Author Chouby

    (@chouby)

    Hi,

    @boschiotto4 Indeed the same problem. Your theme is doing things wrong and does not accept images in menu items. Remove the flags in the language switcher options. Or report this bug to the theme author.

    Just Put this in your jQuary plugin

    jQuery(document).ready(function() {

    jQuery(“li#menu-item-753 a”).removeAttr(“title”);
    });

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tooltips on Language Switcher in menu’ is closed to new replies.