WordPress.org

Forums

Form Lightbox
using button to open lightbox (3 posts)

  1. emaarkhan
    Member
    Posted 2 years ago #

    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/

  2. martineztherock
    Member
    Posted 1 year ago #

    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...

  3. katielockwood
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Form Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags