CMS Development

Rahul2605
Member

Show content based on what user has clicked before

I have created the Magnific popup module to show youtube video in the popup and it is working fine when I am using an anchor tag with a class name.

Now I want to use CTA to get a user clicks. When I use CTA then it is opening a video link in a new tab instead of Popup.

I am using play icon image for a click. 

Page link: http://go.reancloud.com/rean-accelerator-platform

 

0 Upvotes
2 Replies 2
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Show content based on what user has clicked before

@Rahul2605 - The anchors end up getting appended to the end of the url parameters instead of the end of the url. See this post to try and work around that. 

https://community.hubspot.com/t5/Content-Design-Questions/CTA-does-not-take-anchor-for-rich-text/m-p...

Also, you will have to be very careful as to when you initialize your popup code since CTA's are pulled in through AJAX and it will be a little more complicated to bind to a button that doesn't exist yet.


If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

0 Upvotes
Rahul2605
Member

Show content based on what user has clicked before

The anchor is not an issue. CTA is converting the normal link into CTA link so this is happening and I am using jquery to show you video in the popup so when CTA is converting youtube video link into CTA link jquery is not able to get youtube link format.

 

0 Upvotes