How to create a lightbox contact form in a specific part of my WordPress theme?

Discussion in 'PHP' started by Gudino, Jun 3, 2013.

  1. #1
    Hello, I am trying to make it so that when a user clicks on "+ Add New" that a lightbox contact form appears. Where in this code do I place my contact form code?

    Theme code for button:
    echo '<a href="javascript:wpa()" class="emb_cde_sbm">'.wpa_lng('+ Add New').'</a>';
    PHP:
    Contact form code:
    <?php echo do_shortcode ('[formlightbox_call title="contactform" class="132935472"]'); ?>
    PHP:
    Thanks for the help.
     
    Gudino, Jun 3, 2013 IP
  2. Sir-Mammad

    Sir-Mammad Active Member

    Messages:
    148
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    There is so many free plugin to add Lightbox to HTML page like bootstartup or lighbox
    Just add .JS file into header and follow instruction of any plugin u added
     
    Sir-Mammad, Jun 4, 2013 IP
  3. Gudino

    Gudino Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    13
    #3
    Your answer doesn't help me at all. I already know about all the plugins. I am using Contact Form 7 and Form Lightbox. I guess that I should have been more clear in my title and description. I was more looking for help with placement in the code above.
     
    Gudino, Jun 6, 2013 IP