How can images open new tab/page instead of a box?

StatusIDPriorityType
Closed1401HighiMapper WP
Profile Reply
sparklogix Client

I posted this question in the Code Canyon comments, and thank you for your reply. I tried what you suggested and wound up with code that looks like this:

$(‘.imapper’ + id + ‘-pin’).click( function() {
window.location = $(this).find(‘.imCSB_container’).html();
});

When I added the URL to the content and saved the changes, the mapped image opens this URL (http://fullspectrum.wpengine.com/undefined) which is a 404 page. I put http://www.sparklogix.com in the content box. Did I miss something with the code?

Thanks so much for your help with this! You support is excellent :)

Replies

User Description Posted On
sparklogix Client

Sorry, the formatting on that code didn't turn out so great :(

Shindiri Support team Administrator

Hi,

Sorry, that should've been window.location = $(this).parent().find('.imCSB_container').html();

Kind regards,

Br0

sparklogix Client

Worked perfectly! Thank you for your help :)

× This ticket is closed.