jquerywordpressnofollow

add rel="nofollow" to Specific link by jquery or php in wordpress


i want add rel="nofollow" to Specific link(site.com) in wordpress site by php or jquery

thank you


Solution

  • try this jquery

    $(function(){ 
    $('a[href^="http://example.com/external/link"]').attr('rel','nofollow');
    })