Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Title Attribute in WordPress Navigation Menus

We believe every visitor to your website deserves the best possible experience. Your navigation menu is a key part of that, acting as a friendly guide.

To make that guide even clearer, you can add a title attribute in WordPress navigation menus. This small step has a big impact on your site’s accessibility.

For visitors using screen readers, these attributes read aloud a short description of the link. It provides them with extra clarity on where a link will take them.

This also gives search engines a bit more information about your site structure. It’s a win for both your human visitors and your SEO.

We’ll show you exactly where to find this setting and how to use it effectively. Let’s make your website even better, together.

How to Add Title Attribute in WordPress Navigation Menus

Why Add Title Attributes to Navigation Menu Items?

In WordPress, you can add a title attribute to better describe any HTML element. This is often used with links and images to provide extra information that appears as a tooltip when the user hovers their mouse over the element.

Here’s an example of an image title attribute displayed in a tooltip. The user can learn more information about the image by moving their mouse over it.

An image with the title text

You can learn more in our guide on the difference between image alt text vs. title.

We also recommend you use the title attribute when adding links to your post. This allows users to see where the link will take them before they click it.

The title attribute may also be read out loud by screen readers that are used by visually impaired users. However, the screen reader will already read the menu item, so there is no need to add a title attribute unless it contains useful additional information.

With that being said, let’s take a look at how to add the title attribute in WordPress navigation menus. You can use the links below to jump to the method that works with your theme:

  1. Adding a Title Attribute to Classic Theme Menu Items
  2. Adding a Title Attribute to Block Theme Menu Items
  3. Frequently Asked Questions
  4. Expert Guides for Customizing WordPress Navigation Menus

Adding a Title Attribute to Classic Theme Menu Items

If you are using a classic WordPress theme, then you can customize your navigation menu by visiting Appearance » Menus in your dashboard.

However, you are not able to add a title attribute to menu entries by default.

To add this capability, you will need to click the ‘Screen Options‘ tab in the top right corner of the screen. This will bring down a menu, where you need to click on the check box next to the ‘Title Attribute’ option.

Enabling Image Attributes in Screen Options

This will add a title attribute field for when you create or edit a menu entry.

Now, you can scroll down and click on any menu item in your existing menu to expand it. You will see the title attribute field.

Adding a Title Attribute to a Classic Theme Menu Item

You can now add the text you want to use as a title. You can also expand other menu items and add title attributes to them.

Don’t forget to click on the ‘Save Menu’ button at the bottom of the page to store your changes.

You can now visit your WordPress website and take your mouse over a link in the navigation menu. You will see the title attribute displayed as a tooltip.

Preview of a Menu Entry Title Attribute When Using a Classic Theme

Adding a Title Attribute to Block Theme Menu Items

If you are using a block theme, then you can customize your navigation menu using the Full Site Editor. This editor allows you to add title attributes to your menu entries by default.

First, you need to navigate to Appearance » Editor in your WordPress admin area and then click on the ‘Navigation’ option to find your menus.

Go to the Navigation Section of the Full Site Editor and Select a Menu

You will need to select the menu you wish to edit from the list.

Now, you can click the preview pane on the left to open the editor full screen. Make sure you can see the settings pane on the left. If not, then you can display it by clicking the ‘Settings’ button at the top of the screen.

Click a Menu Entry in the Settings Pane

Next, click the menu item in the settings pane that you wish to edit. This will display the options for that entry, including the title attribute.

Simply type your title into the ‘Title Attribute’ field.

Add a Tiitle Attribute in the Settings Pane

Make sure you click the ‘Save’ button at the top of the screen to store the new settings. You will need to click a second ‘Save’ button to confirm.

Now, you can visit your website to see the menu title attribute in action.

Preview of a Menu Entry Title Attribute in a Block Theme

Frequently Asked Questions

We understand you might have a few more questions about menu title attributes. Below, we have answered some of the most common ones to help you out.

1. What is a menu title attribute in WordPress?

A title attribute adds extra, descriptive text to a menu item. When a visitor hovers their mouse over the menu link, this text appears in a small tooltip, providing more context about where the link will take them.

2. Are menu title attributes good for SEO?

Yes, they can be beneficial for SEO. Title attributes provide search engines with more information about your link and site structure. While not a major ranking factor, it’s a good practice that contributes to a well-optimized site.

3. How do I enable the title attribute for menus in WordPress?

If you’re using a classic theme, the title attribute field is hidden by default. You can enable it by going to Appearance » Menus and clicking the ‘Screen Options’ tab at the top right. Then, simply check the box next to ‘Title Attribute’. For block themes, this field is visible by default in the Full Site Editor.

4. What is the difference between the Navigation Label and the Title Attribute?

The Navigation Label is the visible text of the menu item that users click on (e.g., ‘Blog’, ‘About Us’). The Title Attribute is the extra text that appears in a tooltip on hover and is not visible otherwise. It should provide additional information, not just repeat the label.

5. Should I add a title attribute to every menu item?

It’s not strictly necessary for every single item, especially if the navigation label is already very clear. You should add a title attribute when it can provide useful additional context that the label alone doesn’t convey. For example, for a ‘Contact’ label, the title attribute could be ‘Get in touch or find our address.’

Expert Guides for Customizing WordPress Navigation Menus

We hope this tutorial helped you learn how to add a title attribute in WordPress navigation menus. You may also want to see some other articles related to customizing the WordPress navigation menu:

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

20 CommentsLeave a Reply

  1. Hello, thanks for this practical guide . It has enabled me add title attribute in my header menu for the most useful pages on my website which eased user navigation to required pages. But I still have some questions about this.
    Should adding title attributes in navigation menus be considered an SEO measure or factor that should be taken to increase search engine optimization or it’s just for internal navigation purpose?

    • Some people believe it can be for SEO but the main goal is for user experience for your visitors using a screen reader and if you make the content easier for users to navigate it is more likely your site will look good for SEO.

      Admin

    • Generally, it is said, and it’s true, that you do this for users and their comfort when using devices like readers. On the other hand, if you let a tool like Google Pagespeed Insight scan your website without these descriptions, it will alert you to these issues and deduct points from your SEO rating. In my opinion, this indicates that besides the above, it will likely have some impact on SEO and Google’s evaluation. Therefore, I think it’s good to follow this practice for SEO reasons, not just for users and their comfort.

  2. I find it interesting to know that seo is more human than we are and it has more consideration for all than we do.
    I mean when we do seo taking care of title and alt tags and we try to make sure it optimizes on seo parameters, it in turn lets screen readers to view and read clearly.
    I didn’t know that menu options also does have option for title attribute. thanks for this addition.

  3. This was incredibly helpful. I didn’t know there was a menu for screen options. My title attribute had disappeared and this absolutely helped me find it. Thank you!

  4. I don’t know why all the praises here but I’ve tried to follow a few of instructions from this site and NOTHING WORKS.

  5. Wow, thank you! I’ve been tearing my hair out all day trying to inject the title attribute with the nav_menu_link_attributes, Nothing would work. This was so easy and worked great. I had no idea all that stuff was hidden in Screen Options. Thanks again!

  6. This did not work at all for me. In the example screen shots you say to scroll down and click any menu item and expand it. The screen shot clearly shows URL, Navigation Lable, Title Attribute. But when I expand the menu item I want to edit, there IS NO URL associated with it. I am trying to make this one category read in ascending order (oldest to newest.)

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.