CMS Development

tahsin
Participant

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

Hi,

I am trying to integrate this pop up on scroll trigger, which is working fine on my non hubspot site


http://tahsinwonders.net/pop-up/

 

But in hubspot when i tried to integrate it the script just wont run.


http://tahsinwonders.hs-sites.com/pop

I set up everything the same almost but somethign in hubspot is not allowing me to run this script.

 

 

I wanted to post this in the hubspot developer forum but it seems its more for the hubspot api. Or if anyoen can advise here will be great thanks! 

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

I suggest removing your jQuery in the footer because HubSpot includes it in the head already. This could be causing the issue.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

4 Replies 4
Robert
Contributor | Diamond Partner
Contributor | Diamond Partner

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

Hi @tahsin,

One thing that I noticed and might solve you the problem streight away, as mmenu.js uses jQuery, add the jQuery library before the mmenu script.

 

Hope that will solve it, if not let me know and I will dig in a bit more.

0 Upvotes
tahsin
Participant

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

hi @Robert

 

Thanks for looking into it and I removed that menu code and just added library code on top now but unfortunately it still is not appearing in hubspot.

 

http://tahsinwonders.hs-sites.com/pop

 

Thanks 

0 Upvotes
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

I suggest removing your jQuery in the footer because HubSpot includes it in the head already. This could be causing the issue.

Stefen Phelps, Community Champion, Kelp Web Developer
tahsin
Participant

jquery overlay pop up not running in hubspot but working fine on non hubspot site

SOLVE

many thanks @stefen! I added the scripts on top as well below the hubspot default jquery and now its working fine!

http://tahsinwonders.hs-sites.com/pop

cheers

0 Upvotes