Is there a code to add rel="nofollow" in the "Add new comment" link under teaser?
This is the code in the teaser as generated by D7:
So how I do I add rel="nofollow" in that line?
|
Is there a code to add rel="nofollow" in the "Add new comment" link under teaser? This is the code in the teaser as generated by D7: So how I do I add rel="nofollow" in that line? |
||||
|
|
|
You could do this by implementing
This is for node type book, you could replace it by the content type you are using. Here is the Module developer's guide, which should get you started. |
||||
|
|
|
You can do this in preprocess as well. Better to use structured data as its meant to be an not push attributes as strings, that will bound to create an error at some stage because theme_link() wants attribute arrays, not strings.
|
|||
|
|
|
Target the template file using Devel Themer module and then add the rel to the comments.tpl.php or so. |
|||
|
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.