Jump to content

How to make Slider Link open in new tab?


Anybid

Recommended Posts

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

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 by MahmutGulerce (see edit history)
Link to comment
Share on other sites

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

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