• Resolved shraddhanimble

    (@shraddhanimble)


    Hello,
    I am using jetpack plugin. In this plugin setting, traffic section enable “Show related content after posts”.

    This is display related post to post detail page.
    In this section, post link will be display with “rel=nofollow”.
    we want to remove this into link and put “rel=dofollow”.
    We have find this to change but it’s not changed and we have not figure out where’s it’s coming.

    can you please help me for this.
    Here, My site post detail page link:-
    [ redundant link removed ]

    In above link,Please check below related post section.In this section check anchor tag with “rel=nofollow”.

    can you please help us for how we can change it or remove it.

    Thank You.

    • This topic was modified 6 years, 6 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 3392934

    (@anonymized-3392934)

    Hey there, @shraddhanimble!

    Thank you for reaching out to us about this. You can use the following code snippet to remove the nofollow attribute:

    
    add_filter( 'jetpack_relatedposts_filter_post_link_rel', 'bk_remove_nofollow_jp_rps', 10, 2 );
    function bk_remove_nofollow_jp_rps( $rel, $post_id ) {
    return '';
    }
    

    We have a helpful guide on using code snippets, here:

    https://jetpack.com/support/adding-code-snippets/

    As for dofollow, that doesn’t appear to be in common use:

    https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types

    Please let us know if we can help with anything else! ??

    • This reply was modified 6 years, 6 months ago by Anonymous User 3392934.
    Thread Starter shraddhanimble

    (@shraddhanimble)

    Thank you for helping!

    I try with given code but it’s not work.

    I found that it’s come from _action_frontend_init_ajax() function.

    In this function rel value is static “nofollow” in array.

    I am using Version 6.3.2.

    Please figure out my problem.

    Thread Starter shraddhanimble

    (@shraddhanimble)

    Hey @mzakariya

    It’s works.

    I am checking from admin customisation and it’s display from other condition.
    SO in that case it’s not work but in front side in post detail page it’s working properly.

    Sorry for inconvenience.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove nofollow into display related post link in post detail page.’ is closed to new replies.