Forums

Are these links nofollow? (3 posts)

  1. laltoofan
    Member
    Posted 3 months ago #

    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 http://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

  2. bitacre
    Member
    Posted 3 months ago #

    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)

  3. laltoofan
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Topic