Anybid Posted August 14, 2018 Share Posted August 14, 2018 Hi,I have a question regarding Prestashop that I have installed on my site:Under "Design"/"Theme and Logo"/"Homepage Configuration"/"Slider"/ "Image Slider Configuration" there is a "Target URL" field to put a URL in (see screenshot).Is there a way to make this open in a new tab (target="_blank" seems only to work with html).Any help is appreciated, thank you very much!https://prnt.sc/kicqoj Link to comment Share on other sites More sharing options...
MahmutGulerce Posted August 14, 2018 Share Posted August 14, 2018 (edited) hi Open the file prestashop\modules\ps_imageslider\views\templates\hook\slider.tpl via your favorite editor. Then find <a href="{$slide.url}"> and replace with <a href="{$slide.url}" target="_blank"> Thats all. Tip: File can be also here prestashop\themes\classic\modules\ps_imageslider\views\templates\hook or prestashop\<YOUR CUSTOM THEME>\classic\modules\ps_imageslider\views\templates\hook Edited August 14, 2018 by MahmutGulerce (see edit history) Link to comment Share on other sites More sharing options...
Anybid Posted August 14, 2018 Author Share Posted August 14, 2018 Thank you very much for the fast and precise reply Mahmut! This is strange, I added target="_blank" to slider.tpl at the location you indicated (I have two slider.tpl files at different locations and changed them both), but the link is still opening in the same tab (modadilala.com klick on slider to see what I mean). I wonder what I am doing wrong? Thank you Link to comment Share on other sites More sharing options...
Anybid Posted August 14, 2018 Author Share Posted August 14, 2018 Here is a screen shot of the edited file: https://prnt.sc/kik1xj Link to comment Share on other sites More sharing options...
Anybid Posted August 14, 2018 Author Share Posted August 14, 2018 Here are the two locations of the slider.tpl file: public_html/modules/ps_imageslider/views/templates/hook public_html/themes/classic/modules/ps_imageslider/views/templates/hook Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 15, 2018 Share Posted August 15, 2018 Kindly confirm if you have cleared the cache from the admin after making changes in the .tpl file? Link to comment Share on other sites More sharing options...
Anybid Posted August 15, 2018 Author Share Posted August 15, 2018 AHHHH Thank you SOOO much Knowband, this is exactly what did the trick!!!! 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