Link in lightbox window (no fancybox installed)

Highlighted
Tourist
30 0 0

Hi all

does anyone know how to open this <a> link in a new lightbox window?

<a href="{{ block.settings.client_link }}" >
<div class="icon">
<img src="{{ block.settings.client_img | img_url: "70x70" }}" alt="{{ block.settings.client_heading }}" style ="box-shadow: 0 0 5px 0 {{block.settings.img_border_color}};"/>
</div>
{% if block.settings.client_heading != blank %}
<span style="color:{{ block.settings.client_heading_color}}">{{ block.settings.client_heading }} </span>
{% endif %}
</a>

was thinking of using window.open
<script>
function myFunction() {
window.open({{ block.settings.client_link }}, "_blank", "toolbar=no,scrollbars=no,resizable=yes,top=500,left=500,width=950,height=1400");
}
</script>

with onclick(myFunction)

 

0 Likes