I have a slideshow and for each slideshow I have an ::after element like this:
.views-field.views-field-title .field-content:after {
content: url('../images/myimage.svg');
position: absolute;
margin-left: -21px;
margin-top: -30px;
}
I want to create a link for the element but only the first link works, it doesn't work on subsequent slideshow items.
$('.views-field.views-field-title .field-content').after().click(function () {
window.location.href = "http://www.example.com";
});
Do i need to iterate over this using foreach?