Recently, I created a page with what I recommend and use to run ThemeSkills.

Cloudways

That page also contains some affiliate links, and it’s safer for SEO if they are “nofollow”.

Usually, this is done by adding a rel="nofollow" attribute inside the <a> tag, like this: <a href="https://example.com/link/" target="_blank" rel="nofollow">anchor text</a>.

Cloudways

But the next thing happened.

I was using the Content Boxes element from Avada’s (affiliate link) Fusion Builder, which doesn’t have a feature where I could add nofollow to links.

I could have used a workaround, but I really wanted to use that particular element, and it also got personal.

Cloudways

So, what was the solution? Using Yoast’s SEO nofollow setting!

I just nofollowed all the links, which, normally, is not the best idea, but I don’t expect much of that page.

I don’t expect it to rank or gain a lot of authority… It’s mostly for users that come from other landing pages and might click on it to see what I use and recommend.

In this tutorial, I’m going to show how to do that yourself, if you ever think it’s the case.

Cloudways
Yoast’s nofollow setting will apply to all the links on a page or post, meaning that the internal links won’t pass any authority. Depending on your page, you might not want that!

How to nofollow all the links on a WordPress post or page with Yoast

In order to nofollow all the links from a post or page in WordPress, using Yoast’s setting, you have to:

  1. Edit the page or post on which you want the links to be nofollow;
  2. Scroll down to the Yoast SEO meta box;
  3. Click on the Advanced gear icon;
  4. Select No under Should search engines follow links on this Post?;
  5. Save, publish or update your WordPress page or post.

nofollow links yoast seo

That’s it! All the links are now nofollow!

Now, if you check the source code of your page or post, you’ll see a meta tag like this: <meta name="robots" content="index,nofollow"/>, which instructs search engines that they should index the post or page, but not follow the links.

index nofollow meta tag

Again, use this with caution! It should be used in pretty rare cases and if you know what you’re doing, otherwise you could affect your internal linking.

If the post or page will gain authority, but the internal links on it will be nofollow, then they won’t pass any authority to the other linked posts or pages, and they could lose a significant boost.

That’s a wrap

If you have any questions or thoughts, drop a comment or send a message via contact or Facebook page.

You can also hit the follow button on Twitter and subscribe to the YouTube channel.

If you want to start your own WordPress blog, or need a website for your business, ThemeSkills’ WordPress installation service is at your disposal! On-going WordPress support and maintenance is on the menu as well!

You can also purchase a ready-made WordPress website with hosting and support included!