Site logo

Archived topic

Menu item // tag a - title?

1 reply · Started by Sebastien on July 3, 2019

Viewing posts 1–2 of 2

Hi,

I've noticed that there is no title into the <a> tag rendered by menu items, that it doesn't seem SEO optimized.
Is there any reason?
I would like to enable the title.

I already use a php loop that modify the title of the menu item:
$item->title = $result.'<span class="titre-menu">'.$item->title.'</span>';

I would like create another line that adds the title of the <a title='.$item->title.'> and keep the href="/...." the same.

Is it possible? can you help?

thanks

Hi there,

You're wanting to add a title to the menu item links? Don't the menu items have titles (the text you can see)?

If you wanted to add additional titles, you can turn on the Title option in "Appearance > Menus" by opening "Screen Options": http://prntscr.com/oaappa

Then you'll be able to add your titles inside each menu item on that page.

This archived topic is closed to new replies.