Hi at Kriesi,
is it possible to give each testimonial image a (different) http link?
Thanks in advance.
Best Regards
Sigmund
Hey Sigmund,
The testimony images don’t have links, but there is a “Website Link” field for each testimony, would you want to apply this link to the image, or are you looking to add a different link to each image?
Please link to your page so we are sure to be working within the same configuration.
Best regards,
Mike
Hello Mike,
I could apply the “Website Link” field to the image, that would be fine.
Best Regards
Sigmund
Hi,
Please link to your page so we are sure to be working within the same configuration.
Best regards,
Mike
Okay.
Hi,
Thanks for the login, but I didn’t find your testimony element.
I tested this following script on my localhost and it worked well, Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_testimony_link(){
?>
<script>
(function($){
$(document).ready(function () {
$('.avia-testimonial_inner').each(function () {
$('.avia-testimonial-image', this).wrap('<a href="' + lnk + '"></a>');
var lnk = $(this).find('a.avia-testimonial-link').attr('href');
$('a', this).attr('href', lnk);
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_testimony_link');
If it doesn’t work for you, please link to the page with your testimony element so we can adjust.
Best regards,
Mike
Hi Mike,
I have added the code with no results.
Can you have a look?
Thanks.
Best Regards
Jörg
Hi,
I found that you had no links in the “Website Link” field for each testimony. I moved the one link you did have to the “Website Link” field and it works correctly.
Please check.
Best regards,
Mike
Hi Mike,
great! Thanks for the fast solution.
Best Regards
Jörg
You can close the topic, if you like.