How do we add no follow links when an editor us using the editor tool? I can not find a plce to add this code?
I can see how to do it in the designer but not the editor?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
How do we add no follow links when an editor us using the editor tool? I can not find a plce to add this code?
I can see how to do it in the designer but not the editor?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
Add #nofollow at the end of the link.
So your link should look like this:
Then add this script in:
$(“a”).each(function() {
var url = ($(this).attr(‘href’))
if(url.includes(‘nofollow’)){
$(this).attr( “rel”, “nofollow” );
}else{
$(this).attr(‘rel’,‘dofollow’)
}
console.log($(‘body’).html())
})
This script will search each link to see if it contains the “nofollow” text, and add it in as a rel=“nofollow” throughout the site. Otherwise if this #nofollow doesn’t exist it will add a rel=“dofollow”