$(".hero-slideshow .hero__slide").click(function(){ var slideURL = $(this).find(".hero__cta").attr("href"); window.location.href = slideURL; }); Cheers,