rel="nofollow" external links in nav

Permalink 1 user found helpful
Hello,

I'm new to Concrete5 (I LOVE it!) and I'm trying to figure out how to add the rel="nofollow" attribute to external links (and external links only) on my clients main navigation.

The site uses the Superfish menu add-on, if that matters/means anything.

I've searched here and on Google but have not found anything :(

Thanks,
Tim

timkainu
 
Mnkras replied on at Permalink Reply
Mnkras
you will have to make a custom template, what you need to do is copy

/packages/superfish/blocks/superfish/view.php to

/blocks/superfish/

from there you can change the code to add that to external links.

Mike
timkainu replied on at Permalink Reply
timkainu
Thanks, Mike! I will try that out now. Hope I can figure it out since I'm a Concrete5 noob :P


Tim
timkainu replied on at Permalink Reply
timkainu
Okay, so, thanks to your help I was able to add rel="nofollow" but it added it to ALL navigation links... how can I add rel="nofollow" to external/outbound links only?

Thanks,
Tim
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
You can do it like this,
go to page properties and click the "Header Extra Content" under "All Attributes"
Then put this code right in there
<meta name="robots" content="nofollow" />
timkainu replied on at Permalink Reply
timkainu
That won't work unfortunately since I'm trying to add
rel="nofollow"
to an external link on the navigation bar, leading to another website such as Google.com.


- Tim
Mnkras replied on at Permalink Best Answer Reply
Mnkras
timkainu replied on at Permalink Reply
timkainu
Awesome! That did the trick, thanks!