Viewing 1 replies (of 1 total)
  • Wrap the img inside an a tag. You’d either need to change the plugin or do it with some scripting. Add the following code to your display template, see if that works for you.

    <script>
    jQuery(document).ready(function() {
      jQuery(".wpg_image > img").wrap("a");
      jQuery(".wpg_image a").attr("href", "https://example.com");
    }
    </script>
Viewing 1 replies (of 1 total)
  • The topic ‘Replace %link% with image as a link’ is closed to new replies.