Popup window after clicking a button

Lajos
Tourist
10 0 0

Hi, I need some help. I want to make it so that when I click on the "Contact us" button, a page opens in a small popup window. Can someone please help me? 

 

Url:

https://www.energetikon.com/products/canadian-solar-cs6l-455ms

 

My theme: Colorblock v.14.0.0

I am using this Liquid code:

<a href="https://www.energetikon.com/pages/contact" class="button button--primary" onclick="window.location.href = this.href">Contact us</a>

<script>
function openInPopup(link) {
  
}
</script>

Screenshot_20240522_114423_Chrome.jpg

Reply 1 (1)

TerenceKEANE
Shopify Partner
511 86 78

Hi!

 

This can be done with a custom solution.

 

Terence

★ Looking for Dedicated Premium Coding Support? Join our unique "PREMIUM SUPPORT" service starting at 59 USD for 1 MONTH!
★ Get skilled Shopify developers at BUDGET-FRIENDLY RATES — explore Novajetsoft.com for a rapid quote!
If my support was a lifeline for you, The COFFEE  
would be the anchor keeping me steady!
★ For Quick response --> WhatsApp | Email --> info@novajetsoft.com | Software Engineer - Specializing In Advanced E-Commerce Websites