How to Make Slider open in new tab

Latest Reply from Chris-Chris at 2014-01-29 08:54:34 Solution
Hey

i was wondering if there is any way that a slider can open in a new tab when they click on the image or on read more?
can anyone help me?
Hey,

I guess you have to change library.php

Search for:

 <a href="<?php echo $slide['link']?>" title="">
<img src="<?php echo $slide['img']?>" alt="<?php echo $slide['ttl']?>" /></a>


and change into:

 <a href="<?php echo $slide['link']?>" title="" target="_blank">
<img src="<?php echo $slide['img']?>" alt="<?php echo $slide['ttl']?>" /></a>


There is a second code line a few lines lower.

 <h3 class="fp-title"><a href="<?php echo $slide['link']?>" title=""> 


Change to:

 <h3 class="fp-title"><a href="<?php echo $slide['link']?>" title="" target="blank"> 


This should be all to do.

Chris

Leave a reply

Add codeAdd image