Jump to content

[solved] rel="nofollow" not allowed to use in prestashop help pls


DGRL

Recommended Posts

Hi everyone

 

Does anyone of you know how to place a link in product description that includes rel and target?

Everytime i place a link in the description and save prestashop removes the rel the whole time?

 

I dont want to be kicked by search engines for this

I need the rel and new window in my links

thanks

 

Edited by DGRL (see edit history)
Link to comment
Share on other sites

as far as i see now only REL="nofollow" is not allowed in prestashop for some weird reason.

Does anyone of you know how to modify the core of this program in order to let prestashop ACCEPT the REL part in a url?

And why does prestahop not allow me to NOT FOLLOW a url?

Link to comment
Share on other sites

Paste this line in your themes header.tpl
Paste it before end head

 

 <script type="text/javascript">

jQuery(document).ready(function () {

jQuery('a[href*=http://]:not([href*=http://Yourdomain.com])').attr('rel', 'nofollow');

jQuery('a[href*=http://]:not([href*=http://Yourdomain.com])').attr("target", "_blank");

jQuery('a[href*=https://]:not([href*=http://Yourdomain.com])').attr('rel', 'nofollow');

jQuery('a[href*=https://]:not([href*=http://Yourdomain.com])').attr("target", "_blank");

});

</script>

</head>

Edited by DGRL (see edit history)
Link to comment
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...