Disclosure: ULTIDA's content is free & reader-supported. We may earn a commission if you click & buy through our links. Your support helps us create the best content & make a difference.

How To Add Nofollow Links In WordPress?

how to add nofollow links in wordpress

Do you want to learn how to add nofollow links in WordPress?

Most people have no idea what nofollow links are and why they are important when they start with their brand new website.

No one should NEGLECT them, though, as they’re a very important part of your content writing.

And links, internal and external, follow and nofollow, are a big part of a successful SEO strategy.

This post covers:

It’s a rel=”nofollow” attribute within the HTML tag that tells Google to ignore the link when crawling the page (it doesn’t follow it to the destination URL).

This is used for links with LITTLE to no value (comment sections, forums, sponsored links, etc.) to reduce the spam value of your content.

It can massively affect your position in Google search, so you need to pay great attention to your links.

How To Add Nofollow Links To Your WordPress Site (2 ways)

As always, there is more than one way to add the nofollow attribute to your links.

We will first examine how to add it manually without a plugin.

1. Add the nofollow attribute manually (through code)

Don’t worry; adding a nofollow tag is easier than you think.

Note: We recommend this method if you don’t plan to add (A TON OF) nofollow links.

Why? Because you don’t have to use a plugin (which means a lighter website).

First, select the text you want to add a link to.

Click the Insert/Edit link button in the toolbar.

add the nofollow attribute manually

Now click on the Edit HTML or Text button in the upper right corner of your post to get to HTML editing.

Add the rel=”nofollow” attribute to your link and you’re done.

how a nofollow tag in link looks in wordpress html

Now, that wasn’t too hard, right?

But, what if you have thousands of links on your existing website?

Changing them manually would take an enormous amount of time.

WordPress plugins will come to our rescue once more.

You can use many plugins, but since adding a nofollow link is a simple task, we will only focus on two.

Ultimate Nofollow plugin

Ultimate Nofollow plugin is/was one of the most popular plugins for adding nofollow attributes to links once.

Update #1: Unfortunately, the plugin isn’t available on the WordPress repository. However, many still use it today, so we’ll leave it in this guide for now. (I will remove it later.)

Update #2: Ultimate Nofollow is a (very) simple and basic plugin, so even if you plan on continuing using it, there’s little chance it’ll harm your website.

After you install and activate the WordPress plugin, head to Settings > Nofollow.

Click the checkbox and activate the Nofollow all links in the comments option.

ultimate nofollow plugin settings

This is probably the most crucial section of your WordPress website that should have the nofollow tag on all the links.

Most of the spammers target comments; if you are not careful, you can end up with many spammy links.

This will seriously hurt your SEO rankings and it can take a long time to recover.

This is a must, so do it when you install WordPress and start building your website. (Other plugins offer this function, too.)

The plugin offers more options and features:

  • Nofollow checkbox for hyperlinks in posts
  • Shortcodes for nofollow links
  • Add/remove the nofollow tag for all backlinks in comments

Nofollow External Links (SEO)

The Nofollow External Links plugin works a bit differently.

Upon installation and activation, it will AUTOMATICALLY add the nofollow tag to all the links on your website.

But since having all the links on your page with no extra juice is bad for SEO, you can add the domains that will ignore the nofollow rule.

Advice: Don’t nofollow all links!

nofollow external links seo plugin settings

This setting allows you to easily control which domains are important for your website.

There is also an option to open ALL external links in a new window which is a nice addition to the plugin’s options.

(No need to do it manually every time you add a link.)

Both plugins are straightforward, and your links will be set quickly.

It’s important to note that all the advanced SEO plugins like Yoast SEO, All in One SEO, also have the option to set nofollow tags.

This is our preferred way of doing it because you don’t need to use another plugin.

(The fewer plugins, the better.)

We use the Yoast SEO plugin (which we highly recommend), so here’s how adding a noffollow link in Gutenberg happens.

Note: This would be a great built-in feature for the Block Editor (hint, hint).

1. Select the text and click the link symbol

how to add nofollow links in gutenberg

2. Add the destination URL

add a nofollow url in gutenberg

3. Then choose (mark as nofollow)

choose nofollow tag for links in gutenberg

4. And you’re done!

When you link to another website, you give it value or the so-called “juice.”

It boosts the PageRank of that website, which slightly IMPROVES that domain and URL’s SEO.

Having a lot of valuable links from high-authority domains pointing to your website is very valuable.

On the other hand, having a lot of spammy links pointing from your website to domains that are blacklisted or have a bad reputation with Google can seriously damage your website’s good standing.

It will LOWER your position on the search engine results page.

That is why every wise website owner will use the nofollow tag.

The tag will remove the juice from that specific external link and it will not count in the page’s favor and boost its PageRank.

This is how you can protect your website from being classified as “spammy” in the Google’s eyes.

You need to pay attention and give value only to the links related to your article when you write your content.

If you monetize your content, it’s important to mark affiliate and sponsored links as nofollow (or sponsored) unless they are embedded naturally within your content.

The same goes for links in the comments, links to untrusted sources, and links in users’ profiles (if you have a website where users can sign up to your page).

You can check whether the link is nofollow with the Inspect button in your browser.

Start by right-clicking on the link and clicking inspect.

I usually use Google Chrome, which has the most options and is the most user-friendly.

inspect if link is nofollow

After you click the inspect button, a popup window will open.

Now click the Elements button to see if the link contains the nofollow tag.

We hope this guide on adding nofollow links in WordPress teaches you how to organize your links.

You may also be interested in reading how to rank new WordPress content faster so you don’t want for organic traffic for too long.

FAQs About Nofollow Links In WordPress

What is a nofollow link in WordPress?

A nofollow link in WordPress is a standard hyperlink with a ‘rel=”nofollow”‘ attribute. This attribute tells search engines not to follow the link, which can be useful for controlling the flow of ‘link juice’ or for linking to untrusted content.

Why should I use nofollow links on my WordPress site?

You should use nofollow links to prevent search engines from following links to untrusted content, to comply with search engine guidelines (especially for paid links or sponsored content), and to manage the distribution of your site’s authority to external pages.

How can I add a nofollow link to a WordPress post or page?

To add a nofollow link in a post or page, you can manually add the ‘rel=”nofollow”‘ attribute to the link’s HTML code in the Text editor. Some WordPress editors and plugins also offer an option to mark a link as nofollow through a checkbox or settings panel.

Is it possible to set nofollow links automatically in WordPress?

Yes, you can automatically set nofollow links in WordPress using plugins (I don’t recommend it). These plugins can automatically add the ‘rel=”nofollow”‘ attribute to external links or to links based on certain criteria.

Can I add nofollow links in WordPress widgets?

Yes, you can add nofollow links in WordPress widgets by editing the HTML of the link and including the ‘rel=”nofollow”‘ attribute. This is done in the Custom HTML widget or any widget that allows custom HTML input.

Does adding nofollow to links affect my website’s SEO?

Adding nofollow to links can affect your website’s SEO by controlling which external links receive link authority from your site. It’s a way to tell search engines which links are endorsements and which are not, potentially influencing your site’s link profile.

Are there any SEO best practices for using nofollow links in WordPress?

SEO best practices for using nofollow links include using them for paid or sponsored links to avoid search engine penalties, being selective about external links you endorse, and not using nofollow for internal links, as this can disrupt the flow of authority within your site.

When should I use nofollow links?

Use nofollow for paid links, affiliate links, or when linking to untrusted or low-quality sites. It helps maintain the integrity of your site’s SEO.

Can nofollow links still bring traffic to my site?

Yes, they can. Nofollow only affects search engine crawling and ranking, not the actual user experience. People can still click on these links and visit your site.

About Author

Ales has been in love with computers ever since he got Amiga 500 almost 30 years ago. He earned his bachelor’s degree in Computer science from Ljubljana University, Slovenia. In 2010 he co-founded PremiumCoding, a website that makes awesome WordPress themes that are also for sale on ThemeForest. In the past few years, he focused mainly on combining web design, code and photography into a seamless experience.