Tagged: testimonial
Hi,
I wonder, is there a possibility through the some custome function add a link to the testimonial image, as well as to the avia-testimonial-name?
Thanks for advice
Hey Dare_Care,
Thanks for your question, in the testimonial items if you add a website url in the advanced tab:
and add this script to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_testimonial_link_script() { ?>
<script>
(function($) {
$(".avia-testimonial").click(function(){
window.location = $(this).find("a.avia-testimonial-link").attr("href");
return false;
});
$(".avia-testimonial").mouseover(function(){
$(this).css("cursor", "pointer");
});
}(jQuery));
</script>
<?php
}
add_action('wp_footer', 'custom_testimonial_link_script');
then each testimonial element will have the link and show a pointer on mouse-over
Best regards,
Mike
Hey Mike,
Thanks mate, work like charm !
Cheers ;)
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike