• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 06.07.21, 08:38
  • Opened by: LAVECO
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #21879 - How to set a link to open in a new window for a Single image object

I put a “single image” object on the website that I linked. How can I set the link to open in a new browser window for the “Single image” object?



zz1.PNG (1.3 MiB)


Fred 06 Jul 2021, 10:15

Open the file /modules/pspagebuilder/views/templates/front/widgets/widget_image.tpl
find the line

{if (isset($image_link) && !empty($image_link))}<a href="{$image_link}" class="pts-btnlink oh db img-animation">{/if}

add ‘target=”_blank”’ attribute, like this

...<a href="{$image_link}" target="_blank" class="its...