• Hi there,

    Would someone be able to tell me if the links in this post are nofollow links?

    I am pretty sure they are ‘dofollow’, someone has told me that they are not. the post is https://darkdesigngraphics.co.uk/2012/02/01/seotiras-a-visual-identity/ The link specifically is the one titled ‘ Internet Marketing Agency in Cyprus’ at the top of the page. and any others further down if possible.

    They were previously no follow but I added the code:

    function remove_nofollow($string) {
    	$string = str_ireplace(' rel="nofollow"', '', $string);
    	return $string;
    }
    add_filter('the_content', 'remove_nofollow');

    To the themes function.php when pressing ctrl + U on my browser I can not see any nofollow code in the links so I assumed it was sorted?

    Any help would be greatly appreciated!

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • str_ireplace(‘ rel=”nofollow”‘, ”, $string);

    This line would find any instance of rel=”nofollow” and replace it with nothing. This would make these links dofollow (more correctly, it would make them not nofollow)

    Thread Starter laltoofan

    (@laltoofan)

    Thank you Bitacre, I think I have it sorted in, not sure why every link on my posts were nofollow. Think it must have been the work of some plugin.

    Many Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Are these links nofollow?’ is closed to new replies.