Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Box Title Link To Lightbox With Gravity Form.


Question

Posted · Report post

Ok, here is what I have so far. I downloaded Easy FancyBox and used this code to create a lightbox with a gravity form in it.


<div style="display:none" class="fancybox-hidden"><div id="fancyboxID-1">

[gravityform id="1" ajax="true"]

</div></div>


<a href="#fancyboxID-1" class="fancybox">Click here to enter your details</a>

I want the lightbox to show up when the box title and thumbnail image is clicked. this code works great, but how do I attach it to a certain box title?

Here is a link to the site I am working on, but I have no idea where to put the code yet so I just put up some boxes : http://josiahthompson.com

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Hi there,

I'm not sure on this one. There's an option in the boxes to set a link up per box, this links the title and the image, so I'd imagine you'd be able to use a hook and tap into that to activate your code.

Have you tired using a modal button with the gravity form in? We have shortcodes for them so would be easier to set up. An example of the modal is on http://demo.pagelines.me/tools/

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

I will experiment with hooks. thank you!

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites