Tagged: x
-
AuthorPosts
-
January 6, 2017 at 1:56 am #1318514
crani11ParticipantHey
Is it possible to have a button that when you click it popups with a contact 7 form, without installing a plugin? Is there a modal shortcode or something?
Thanks in advanced
C
January 6, 2017 at 2:18 am #1318525
Paul RModeratorHi,
Thanks for writing in!
You can try adding this in a raw content element.
<div id="my-content"> [contact-form-7 id="1985" title="Contact form 1"] </div> [button class="lightbox-selector" type="real" shape="rounded" size="small" href="#my-content" title="Example"]Open Contact Form[/button] [lightbox selector=".lightbox-selector"]Change
[contact-form-7 id="1985" title="Contact form 1"]with the shortcode of your contact form.Hope that helps.
January 6, 2017 at 2:54 am #1318549
crani11ParticipantHey
Thanks for getting back to me Paul.
Just tried that but it’s showing the form before being clicked 🙁
I’ve added:
style="display: none;that hides the form, but when you click the button the form doesn’t appear.
January 6, 2017 at 3:09 am #1318571
Paul RModeratorHi,
Kindly replace the code with this.
<div id="my-content" style="display:none;"> [contact-form-7 id="1985" title="Contact form 1"] </div> <a class="x-btn x-btn-real x-btn-rounded x-btn-regular lightbox-selector" href="#my-content" data-type="inline">Open Contact Form</a> [lightbox selector=".lightbox-selector"]Hope that helps
January 6, 2017 at 3:12 am #1318575
crani11ParticipantAwesome that did the trick 🙂
Thanks Paul, have a great day 🙂
January 6, 2017 at 4:10 am #1318640
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1318514 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
