Jump to content

Is There Any Way To Add No-Follow For All External Link On Prestashop?


Recommended Posts

Hi mate, you can add some javascript, and play with this line:

$('a[href^="http"]:not([href*="YOURSITE.com'])").attr('rel','nofollow');

where you look for all <a> tags which start with "http", but not your own domain...and add the nofollow attribute...

Regards,

Edited by garciasanchezdani (see edit history)
  • Like 1
Link to comment
Share on other sites

Thank you garciasanchezdani! It work well.

 

Hi mate, you can add some javascript, and play with this line:

$('a[href^="http"]:not([href*="YOURSITE.com'])").attr('rel','nofollow');

where you look for all <a> tags which start with "http", but not your own domain...and add the nofollow attribute...

Regards,

Edited by Vince at RockPOS (see edit history)
Link to comment
Share on other sites

  • 7 months later...
  • 3 years later...

This is not good. Google will not see those nofollows, this is totally useless.

You should go links one by one to set the rell no follow. Maybe through mysql you can update multiple contents at once. But jQuery won't help on that.

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...