Opening the url of the slider images in new window?

Any questions about styling and customising the layout, changing the number of columns, changing the number of sliding images and so on.

Opening the url of the slider images in new window?

Postby ozgrgvn » Tue Jan 17, 2012 10:47 pm

Is there a way to have one of the slider images' link to be opened in a new window?

(target="_blank" didn't work on functions.php)
ozgrgvn
I'm new here
 
Posts: 2
Joined: Tue Jan 17, 2012 9:04 pm

Re: Opening the url of the slider images in new window?

Postby mscir » Sat Feb 04, 2012 10:32 am

I tried to get this working too. Here's how I did it:

/* original code commented out:
$item_output = '<a' . $attributes .' style="background: url(\'' . $thumbnail. '\') repeat scroll 0%;">';
*/
/* replacement code: */
$item_output = '<a target="_blank" ' . $attributes .' style="background: url(\'' . $thumbnail. '\') repeat scroll 0%;">';

It looks good in the source code, e.g.:

<a target="_blank" href="http://retrometro.com/maps/maps_sc.php" style="...') repeat scroll 0%;">Santa Cruz Map</a>
<a target="_blank" href="http://www.retrometro.com/food" style="...') repeat scroll 0%;">Food</a>

But the links still open in the same window.
Is there a javascript function somewhere overriding this?
Mike
mscir
I'm new here
 
Posts: 1
Joined: Sat Feb 04, 2012 10:28 am


Return to Advanced - Customising the theme



cron