DGRL Posted September 5, 2016 Share Posted September 5, 2016 (edited) 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 September 7, 2016 by DGRL (see edit history) Link to comment Share on other sites More sharing options...
DGRL Posted September 5, 2016 Author Share Posted September 5, 2016 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 More sharing options...
DGRL Posted September 6, 2016 Author Share Posted September 6, 2016 No one here who can help me? Link to comment Share on other sites More sharing options...
Dh42 Posted September 6, 2016 Share Posted September 6, 2016 This needs to be placed in the head of a page, not the description. You will either need a module for this or a custom made integration. Link to comment Share on other sites More sharing options...
DGRL Posted September 7, 2016 Author Share Posted September 7, 2016 Already fixed it myself Finally both REL and TARGET are saved And html putifier is turned on :-) Link to comment Share on other sites More sharing options...
rocky Posted September 8, 2016 Share Posted September 8, 2016 How did you fix it? Others will want to know. Link to comment Share on other sites More sharing options...
DGRL Posted September 8, 2016 Author Share Posted September 8, 2016 (edited) Paste this line in your themes header.tplPaste 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 September 8, 2016 by DGRL (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now