Hot answers tagged nofollow
2
I think it depends what your goal is and what the breadcrumbs represent. I would say that for most wordpress sites nofollow on breadcrumbs is probably a nonissue.
Let's start with nofollow. Nofollow says you don't want a search engine to pass on page rank to this link. So if you had comment links and people can post their personal website you would ...
2
There is another thread on here that discusses a workaround.
Well... the familiar php workaround when a function does not provide a "get to variable" output actually... use ob_start: http://php.net/manual/en/function.ob-start.php
to just capture the output and manipulate it before sending it on its way.
Leads on stackoverflow: ...
2
use wordpress build in funcion for that "wp_rel_nofollow"
with a hook to wp_list_pages.
paste this code in your theme's functions.php file and you are set.
function add_no_follow($output){
return wp_rel_nofollow($output);
}
add_filter('wp_list_pages', 'add_no_follow');
hope this helps.
2
In your theme's functions.php:
/* Returns a "Continue Reading" link for excerpts, with 'nofollow' set */
function your_theme_continue_reading_link() {
return ' <a href="'. get_permalink() . '" rel="nofollow">' .
'<span class="meta-nav">→</span> Continue reading</a>';
}
/* Replaces "[...]" (appended to ...
1
Use in your .htaccess:
Options -Indexes
… to disable directory listings. See the Apache manual for details.
To restrict the access just to two URLs you might use:
RedirectMatch 204 ^/wp-content/$
RedirectMatch 204 ^/wp-content/dir/$
204 is the No Content response. Very fast. :)
1
you can add a filter in your functions.php
add
// Nofollow in content
add_filter('the_content', 'my_nofollow');
function my_nofollow($content) {
//return stripslashes(wp_rel_nofollow($content));
return preg_replace_callback('/<a[^>]+/', 'my_nofollow_callback', $content);
}
function my_nofollow_callback($matches) {
$link = $matches[0];
...
Only top voted, non community-wiki answers of a minimum length are eligible