Jump to content
Sign in to follow this  
freshlydesigned

Boxes image links to open in new window

Recommended Posts

freshlydesigned

Hi, is there a way to add links to Boxes images so they open up in a new window, not on the same page? Thanks

Share this post


Link to post
Share on other sites
Kate
You could accomplish this with jQuery, which is already loaded into the theme. You can add the custom code to Settings->Custom Code under one of the Scripts areas. Just Google something like "jQuery open links in new window", and you'll find a bunch of tutorials on the subject ;)

Share this post


Link to post
Share on other sites
freshlydesigned
Hi Kate, thanks but that is probably a bit beyond me, and would it mean that all links on the site open in a new window or could I tailor it just for the boxes? Thanks

Share this post


Link to post
Share on other sites
kastelic
You could tailor it for boxes. For example: [code] jQuery('#boxes a').attr( 'target', '_blank' ); [/code]

Share this post


Link to post
Share on other sites
freshlydesigned
Thanks mate, but please could you tell me where this goes, in the headerscripts?? I tried that but when i loaded up any page I would just get a blank code with that text in it.... Thanks Jamie

Share this post


Link to post
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

Sign in to follow this  

×