Streaming live at 10am (PST)

Nofollow links in rich text blocks


#1

I am aware of the ability to set the rel=nofollow for links via the attribute section. However, we are making extensive use of the rich text blocks and I am looking for a solution to assign the nofollow attribute to those links.

When using the attribute setting in the context of the rich text blocks, it seems to get applied to the text block itself rather than the specific link (here is the page that I am referring to: care energy). Hence, is there a solution to solving this in order to assign the attribute directly to the link itself?

Any advice is very much appreciated!


#2

Adding custom attributes for links inside of a rich text element is not yet on the platform. But I think you can still achieve this via custom code:

$('.w-richtext a').attr('rel','nofollow')


#3

Thanks for the quick reply. I added it to the head tag in webflow, but it still doesn't seem to work (as far as I can tell). As I am not a programmer, I have no idea what that is :wink:

Here is the updated care energy page.


#4

I am following-up once again since I am still clueless how to get the no-follow to work for the rich text element. Any advice is very much appreciated! :slight_smile:


#5

PS: here is the custom code we added to the care energy page that I am referring to.


#6

@PixelGeek: Any advise on solving the above issue?


#7