Menu alt text showing Title Attribute not Navigation Label

I have a problem with my website using the Dazzling theme.

I am using Font Awesome and Glyphicons in my menu.
Since the last update if I hover over a menu item, it is no longer showing the Navigation label as the hover over text (alt text).
It is now displaying the Title Attribute such as fa fa-info.

http://prnt.sc/cv84f0
http://prnt.sc/cv83uw

I have used the instructions as shown in2.1.2 Glyphicons on the themes documentation located here:
https://colorlib.com/wp/support/dazzling/

This was all working fine before. I’m not sure if it was a theme update or WordPress update that caused the problem. Can you please fix this?

I am using Dazzling version 2.0.4

Hi @joel,

I hope you are well today and thank you for your question.

You can fix the issue by editing the following Dazzling theme file on line number 79 as displayed below.

Dazzling theme file :
/wp-content/themes/dazzling/inc/navwalker.php

Before Editing:
$atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : $item->title;

After Editing: $atts['title'] = ! empty( $item->title ) ? $item->title : $item->attr_title;

Best Regards,
Movin

Hi Movin,

I am well today, thank you for asking. I hope that you are also.

Your suggestion worked perfectly.

Thank you for your detailed instructions and providing such fantastic support and a quick response.

Kind regards,
Joel

Movin,

I would also like to know, is there actually a way to hide this alt-text from showing on the menu at all?

Thanks again.

Joel

You are most welcome here :slight_smile:

I would also like to know, is there actually a way to hide this alt-text from showing on the menu at all?

You can achieve this by changing the above code as following.

Before Editing:

$atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : $item->title;

After Editing: $atts['title'] = '';

Thank you Movin,

I think the menu looks cleaner with out the hover alt-text showing.

Appreciate your help. Take care.

You are always welcome here :slight_smile: