If you’ve ever created a WordPress menu, you’ve probably come across it before: the WordPress title attribute. People often ask what the title attribute is and what you can do with it. In this blog, we will answer these questions.
What is the WordPress title attribute?
The WordPress title attribute is an HTML element mainly used for a link on a website. With this element, you can provide an internal or external link with extra information. This information is then shown as soon as a visitor moves his mouse over the link. It often appears in the form of a tooltip text.
Actually, a WordPress title attribute is similar to an Alt tag with which you can provide an image with extra information.
Why should I use a WordPress title attribute?
The purpose of a WordPress title attribute is twofold: it is beneficial for both the visitor and the search engine. When visitors hover over the link with their mouse, they get a better idea of where the link leads them before they click on it.
Also, the page the link points to gets a better score from the search engines because it provides more context. However, SEO experts are not sure how much impact it actually has on a website’s rankings. In any case, it doesn’t hurt to start using title attributes.
How do I add a WordPress title attribute?
In principle, you can add the WordPress title attribute to any link on your website, but the element is most commonly used for the WordPress menu. Below we discuss both options.
Add WordPress title attribute to WordPress menu:
Step 1: Log in to your WordPress website and then go to ‘ Display ‘ → ‘ Menus ‘
Step 2: Click on ” Display Options ” in the upper right and select Title attribute (or title attribute if WordPress is set in English).
Step 3: After that, scroll down and click on a ‘ Menu Item ‘ to expand it. After this you will see a title attribute option.
You can now add the text you want to use as the title and repeat this for all menu items in your WordPress menu. Then don’t forget to save your changes. You can test the title attribute by hovering your mouse over a link in the navigation menu. If you have everything set up correctly, the title attribute will be displayed as a tooltip.
Add WordPress title attribute to a link
Step 1: Go to a piece of text on a page or blog where you want to place a link or have already placed it link
Step 2: Next, select the words you want to link to, or have already made, and click on the ‘ link icon ‘ of WordPress.
Step 3: You will then see a screen where you can enter the ‘ URL ‘ and ‘ Title attribute ‘. You can also indicate here whether the link should point to an existing page or whether it should be opened in a new window.
Step 4: Click on add link. Now you can admire your title attribute by hovering your mouse over the link at the front of your website.
for website maintenance service contact us.