KEYWORD: How to Add Nofollow Links in WordPress Menu
**
**
Want to add the nofollow attribute to links in your WordPress menu? Adding the nofollow attribute to external links can provide added security, especially when linking to unfamiliar websites. If you’re new to WordPress and unsure how to add a custom link with the nofollow tag to your menu, don’t worry. In this comprehensive guide, we will walk you through the step-by-step process of adding nofollow links to your WordPress menu.
Method 1: Using the WordPress Customizer
If your WordPress theme has a dedicated menu tab in the theme customizer, follow these simple steps:
- Go to your WordPress admin sidebar and click on “Appearance”, then select “Menus”.
- In the “Menus” screen, click on the “Custom Links” tab to add an external link.
- Enter the URL and link text for the website you want to link to.
- Click “Add to Menu” to incorporate the external link into your menu.
- To add the nofollow attribute, click the downward arrow on the right of the menu entry.
- In the Link Relationship (XFN) field, enter “nofollow”.
- For a better user experience, check the “Open link in a new tab” checkbox.
- Click “Save Menu” to save your changes.
To confirm that the nofollow attribute has been added, right-click on the new link, select “Inspect”, and review the HTML source for the presence of the nofollow attribute.
Method 2: Using the WordPress Full Site Editor
If you’re using WordPress 5.9 or a later version and your block theme supports the WordPress full site editor, follow these straightforward steps:
- Go to your WordPress admin sidebar and click on “Appearance”, then select “Editor”.
- Scroll down until you find the “Custom Link” block, and drag it onto your navigation menu.
- Type or paste the URL and adjust the “Open in new tab” option if desired.
- Click the “Submit” icon to save the settings for the menu item.
- Rename the menu item to provide a more descriptive title.
- Click on the menu item, and a toolbar will appear.
- Click the link icon on the toolbar.
- In the settings pane on the right, enter “nofollow” in the “Link rel” field.
- If desired, you can also add a description and title for the link and rearrange the menu items.
- Click “Save” to apply your changes.
View your website to see how the navigation menu appears with the newly added nofollow link.
Congratulations! You have successfully added nofollow links to your WordPress menu. For a wide range of WordPress tutorials, subscribe to our YouTube channel or follow us on Twitter and Facebook. Additionally, check out our collection of informative articles on automating workflows in WordPress or optimizing WordPress performance.