-
AuthorPosts
-
September 14, 2018 at 12:31 pm #1009880
Hi at Kriesi,
is it possible to give each testimonial image a (different) http link?Thanks in advance.
Best Regards
SigmundSeptember 15, 2018 at 6:37 pm #1010211Hey 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,
MikeSeptember 15, 2018 at 7:41 pm #1010221Hello Mike,
I could apply the “Website Link” field to the image, that would be fine.Best Regards
SigmundSeptember 15, 2018 at 9:01 pm #1010253Hi,
Please link to your page so we are sure to be working within the same configuration.Best regards,
MikeSeptember 15, 2018 at 9:59 pm #1010261Okay.
September 15, 2018 at 10:15 pm #1010262Hi,
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,
MikeSeptember 16, 2018 at 9:04 am #1010317Hi Mike,
I have added the code with no results.
Can you have a look?
Thanks.Best Regards
JörgSeptember 16, 2018 at 9:27 am #1010320Hi,
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,
MikeSeptember 16, 2018 at 10:12 am #1010331Hi Mike,
great! Thanks for the fast solution.
Best Regards
JörgSeptember 16, 2018 at 11:00 am #1010343You can close the topic, if you like.
-
AuthorPosts
- You must be logged in to reply to this topic.
