biketrip Posted May 2, 2014 Share Posted May 2, 2014 at my theme i have a custom content block with an img that redirect a link to another site, how do i change it to open the link in a new window or new tab instead of redirect it from my site? www.bike-trip.co.il the img next to the slide show. thanks, Yaniv Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 use target="_blank" param in <a href=""> 1 Link to comment Share on other sites More sharing options...
biketrip Posted May 2, 2014 Author Share Posted May 2, 2014 but on wich file do i put it? Link to comment Share on other sites More sharing options...
Whispar1 Posted May 2, 2014 Share Posted May 2, 2014 (edited) You add what Vekia posted to the link you created for the custom content: (See below) <a href="http://www.recycles.co.il" target="_blank"> <img src="/store/modules/customcontent/images/be35567e809f31fff308eb0f2548c6da.png" alt=""> </a> Edited May 2, 2014 by Whispar1 (see edit history) Link to comment Share on other sites More sharing options...
biketrip Posted May 3, 2014 Author Share Posted May 3, 2014 Vekia & Whispar , thanks for your replys . i understand what part to add but i cant understand on what file do i find this line so i can add it... Link to comment Share on other sites More sharing options...
biketrip Posted May 3, 2014 Author Share Posted May 3, 2014 ok found it , at modules/customcontent/views/templates/hook find the correcthook you need to modify & add it there replace <a href="{$item->url}"> with : <a href="{$item->url}"target="_blank"> Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 if you're adding contents via back office, you can add it there without modification of module .tpl files. you use default module? or it's a modification / totally other module? Link to comment Share on other sites More sharing options...
Recommended Posts