Nofollow links in WordPress posts

Sun, Jul 18, 2010

WordPress

You may want to create rel nofollow links in your WordPress posts when writing them for your own specific reasons. There are two ways of going about adding links with a nofollow relationships inside your TinyMCE editor.

Manual method

The manual way of doing this is to go into the HTML view of your TinyMCE editor by clicking on the ‘HTML’ tab (next to the ‘Visual’ tab) in the top, right-hand corner of the editor. You will then see all the HTML source code for your post where you can add add the rel attribute with a nofollow value to give it a nofollow relationship to its target. Here is a normal link…

<a href="http://domain.com">My Link</a>

And here is the same link with the nofollow added to it…

<a href="http://domain.com" rel="nofollow">My Link</a>

Automatic method

Even though the manual method above is pretty straightforward, you can achieve the same results with a few simple clicks of your mouse. First, you’ll need to install a plugin called TinyMCE Advanced.  The plugin wasn’t specifically developed for this purpose, it actually gives you a vast range of added functionality to your WordPress TinyMCE editor.

With TinyMCE Advanced installed, you can set the nofollow at the same time that you specify the URL for the selected text in your blog post. So you’ll still select your text to make a link from and click the link icon in your editor toolbar. With the link dialog open, you’ll add your values such as the URL and then click on the ‘Advanced’ tab. You’ll then see a setting named ‘Relationship page to target’. For that setting, select “No Follow” to make the link nofollow.

In the screenshot above…

  1. Select the text to make a link with.
  2. Click the ‘Insert/Edit link’ button in the TinyMCE editor toolbar.
  3. Select the ‘Advanced’ tab.
  4. Choose ‘No Follow’ for the ‘Relationship page to target’ setting.
, , , , , , , ,

This post was written by:

Antonie Potgieter - who has written 57 posts on Lost-In-Code.

I (Antonie Potgieter) am a software engineer/web developer located in South Africa. My full-time work is the management of Tribulant Software and the development of its software packages.

Contact the author

0 Comments For This Post

15 Trackbacks For This Post

  1. Mr. Coffee ECM160 4-Cup Steam Espresso Machine | discount espresso coffee machines Says:

    [...] Nofollow links in WordPress posts [...]

  2. Free International Calls: be in Touch With Someone You Know by Talking for Free | Making Money Programs Says:

    [...] Nofollow links in WordPress posts [...]

  3. Auction firm turns wrecked cars to cold cash. (Los Angeles Auto Salvage/Insurance Auto Auctions Inc.): An article from: National Underwriter Property & Casualty-Risk & Benefits Management | Flood Damaged Cars Says:

    [...] Nofollow links in WordPress posts [...]

  4. JUNK CAR PARKING wreck tow NEW novelty sign | Flood Damaged Cars Says:

    [...] Nofollow links in WordPress posts [...]

  5. Libertarian Party Monday Messa… | america1first.com Says:

    [...] Nofollow links in WordPress posts [...]

  6. Lastest FIFA 2010 NewsEn Vivo Desde Sudáfrica 2010 | Says:

    [...] Nofollow links in WordPress posts [...]

  7. I battled to mend boat but had to turn back | Flood Damaged Cars Says:

    [...] Nofollow links in WordPress posts [...]

  8. Police Mens P Saratoga Multifunction Orange Leather Bracelet Watch PL-11310JS/04 | My Top Watches Says:

    [...] Nofollow links in WordPress posts [...]

  9. Lake Havasu Health Insurance Health Insurance Regulations Says:

    [...] Nofollow links in WordPress posts [...]

  10. How To Build Your Own Google Adsense Empire | Adsense Tips Says:

    [...] Nofollow links in WordPress posts [...]

  11. Jasmine Oil -1 oz. 1 Ounces Says:

    [...] Nofollow links in WordPress posts [...]

  12. Good brews, cowboys, lavender and more Says:

    [...] Nofollow links in WordPress posts [...]

  13. Laptops That Cause Burns; Ski Boots Have Fall Hazard | Best Laptop for Students Says:

    [...] Nofollow links &#1110&#1495 WordPress posts [...]

  14. RIM’s BlackBerry Curve 9300 sp… | Chris Kilian Says:

    [...] Nofollow links in WordPress posts [...]

  15. BlackBerry 9780 outted via UAP… | Chris Kilian Says:

    [...] Nofollow links in WordPress posts [...]

Leave a Reply