How to Add a Title Attribute to a WordPress Navigation Menu

How to Add a Title Attribute to a WordPress Navigation Menu

Most beginners don’t know How to Add a Title Attribute to a WordPress Navigation Menu. The title attribute shows extra information when the mouse hover. In this article, we will show How to add a title attribute. 

Why Important Title Attribute:

Link text is not enough for the link information. Sometimes we need more information about links. The solution is the title attribute. The title attribute is employed to specify extra information about the element. When the mouse moves over the element then it shows the knowledge.

Syntax:

<element title = "text">

WordPress has built-in Title Attribute options. We can use it for adding more information about the link. It adds the title attribute on the navigation menus. 

How To add a title attribute in a WordPress Navigation Menu:

It’s so simple. You can add the title attribute with WordPress Screen Options. Firstly You need to turn on that option.

Go Appearance > Menus. If you haven’t created a menu yet. You can create a menu with bootstrap 5. Read Our article How To Create A WordPress Navigation Menu With Bootstrap 5.

Click The Screen Options and check what service you want. You can also add Link Target, CSS Classes, Title Attribute, etc.

How to Add a Title Attribute in a WordPress Navigation Menu

If You check the title attribute checkbox. You will see an input box on the menu item option.

How to Add a Title Attribute in a WordPress Navigation Menu

Then You fill the input box. Hover on that menu item You will see the output.

How to Add a Title Attribute in a WordPress Navigation Menu

That’s it. I think now you easily do it. Also, you can add CSS and link target.

Conclusion: 

The navigation menu is an important part of a website. When a visitor comes to your website And Reads a Post or Web content. If you haven’t any navigation menu. Or You haven’t properly described your link. They don’t understand. They just go back. Why did he click your link? How can benefit from your link?

We hope this article helped you. If you have any problem with WordPress. Feel free to contact us or Please comment below.

See More About Navigation Menus:

How to add Button in WordPress Navigation Menu

Add Image Icons With Navigation Menus in WordPress Without Plugin

Create an Advanced Theme Options Panel in WordPress

Leave a Reply

Your email address will not be published.