Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1009880

    Hi at Kriesi,
    is it possible to give each testimonial image a (different) http link?

    Thanks in advance.

    Best Regards
    Sigmund

    #1010211

    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

    #1010221

    Hello Mike,
    I could apply the “Website Link” field to the image, that would be fine.

    Best Regards
    Sigmund

    #1010253

    Hi,
    Please link to your page so we are sure to be working within the same configuration.

    Best regards,
    Mike

    #1010261

    Okay.

    #1010262

    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

    #1010317

    Hi Mike,
    I have added the code with no results.
    Can you have a look?
    Thanks.

    Best Regards
    Jörg

    #1010320

    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

    #1010331

    Hi Mike,
    great! Thanks for the fast solution.
    Best Regards
    Jörg

    #1010343

    You can close the topic, if you like.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.