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

Share this post


Link to post
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)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
  • 8 months later...

Is this still working?

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

...if yes, then how can it be added to prestashop?

 

Thanks 🙂

Share this post


Link to post
Share on other sites

I agree Nickz, but having moer than 10,000 outgoing dofollow links doesn't help on SEO as well.

So it would be nice to give all external links a nofollow, and then still have some links excluded (keeping them as dofollow).

Share this post


Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More