Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1346527

    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

    #1346576

    Hey Dare_Care,
    Thanks for your question, in the testimonial items if you add a website url in the advanced tab:
    2022-03-30_001.jpg
    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
    2022-03-30_002.jpg

    Best regards,
    Mike

    #1346766

    Hey Mike,
    Thanks mate, work like charm !

    Cheers ;)

    #1346782

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Testimonial link element’ is closed to new replies.