This post will be better understood by PHP developers, but helpful for bloggers and SEO developers.
On wordpress websites that I am building, I am using Headspace2 Plugin for SEO. Some of you prefer Allinone SEO Pack, but it lacks some features that I really need.
Adding nofollow on pages/posts.
Adding nofollow on some links that are not important to Google (like About us, Contact, Privacy …) can transfer more link juice to the other important pages from your website.
You can add nofollow to pages/posts by enabling the Headspace->Page Modules->Page Links module.
When you add new/edit a page, you will see three new fields:
- Page Link Text
- Page Link Title
- Page Link Options
From Page Link Options you can check the nofollow box to add rel=”nofollow” when generating the page list with wp_list_pages() function.
There is one flaw here. You are required to fill in the Page Link Text field, else it won’t show up any text in the link ( <a href=”” rel=”nofollow”>[TEXT MISSING]</a>).
To fix this and let wordpress show the default page title text if no text is detected there, you have to:
- edit /wp-content/plugins/headspace2/modules/page/page-links.php file on your server
- go to line 113 and replace
$text = $this->meta[$id][‘text’];
$text = $this->meta[$id][‘text’] ? $this->meta[$id][‘text’] : $text;