• Hello,
    I am trying to have a button on which when i click it will open up lightbox. I tried many things but didn’t work, here is my code

    <button id="contact">Contact Us</button>
    	 <?php echo
    	 do_shortcode('[formlightbox"]
    	  <center>
    	 [contact-form-7 id="36" title="Contact Attorney"]
    	 </center>
    	 [/formlightbox]');

    http://wordpress.org/extend/plugins/form-lightbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • This worked for me…

    [formlightbox_call title="lightbox form" class="1374826386773"]<button class="contact_button_lightbox">Contact</button>[/formlightbox_call]
    [formlightbox_obj id="1374826386773" style="" onload="false"][contact-form-7 id="110" title="Contact_Sample"][/formlightbox_obj]

    replace [contact-form-7 id="110" title="Contact_Sample"] with the shortcode for your Contact page.

    Regards…

    Hi,

    I’m also trying to place a button on my website which opens a lightbox with a contact form.

    The code above worked for me but I was wondering if there is a way to change the styling of the button, for example, change the colour?

    Cheers,

    Katie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘using button to open lightbox’ is closed to new replies.