HELP - Where do I find the javascript for the call to action button on home page?

Highlighted
New Member
11 0 0

I'm hoping to link one of my home page call to action to the newsletter sign up pop up (which I created with privy app). 

Have emailed the Privy guys and their instruction is that if I can locate the javascript for this button, I can make it happen.. I NEED HELP TO FIND THIS CODE PLEASE.. (tried theme.liquid but no luck)

The button is on my home page: GET UPDATED on the second home page image. 

This is the Privy instruction: https://blog.privy.com/blog/2015/10/how-to-use-a-custom-call-to-action-to-trigger-your-privy-campaig...

Can any code guru help please?

0 Likes
Highlighted
New Member
11 0 0

this is the button

0 Likes
Highlighted
Shopify Partner
1365 24 238

According to the docs all you have to add its a click handler:

<button onclick="Privy.show(10552);">Attend Our Event</button>
If you show us your home page maybe we can figure it out what button is it. It is not going to be in theme.liquid, most likely in index.liquid.
https://sections.design tips, tricks & Shopify sections
0 Likes
Highlighted
New Member
11 0 0

Hi Thanks. 

The button I need to trigger pop up is in the image attached, located on the home page. 
My site is : the-rushing-hour.myshopify.com 
pw: almostthere

Yes if I can get help locate where this button is, I'll be able to update the onclick action :)

Cheers

 

0 Likes
Highlighted
Shopify Partner
1365 24 238

OK,

Its not a <button> element its an Anchor Element <a>:

<a href="/collections/" class="btn ">
          GET UPDATE →
        </a>

I do not see the Liquid code here but try to look trough index.liquid and search for "btn". It should be there.

BTW, check the console.log, you have Javacript errors. 

https://sections.design tips, tricks & Shopify sections
0 Likes
Highlighted
New Member
11 0 0

I tried look into both theme.liquid & index.liquid and can't find it too.

:(

0 Likes