-
AuthorPosts
-
February 27, 2014 at 9:01 pm #18735
Richard RParticipant
Here is a pic of what I am getting for the lightbox.. I want to click the button (with the circle) and the lgithbox come up with the form..
I have looked in other posts and i see one wehre you have a div tag with the contact short code in it and the picture above is what i getdiv id="my-content"> [contact-form-7 id="5" title="Contact form 1"] </div> <a href="#my-content" class="lightbox-selector" data-type="inline">Click Me</a> [lightbox selector=".lightbox-selector"] [button href="#" title="Get Started" target="blank" shape="rounded" size="regular" block="true" circle="true" icon_only="true" info="popover" info_place="top" info_trigger="hover" info_content="Contact Us or send us any questions you may have.. Dont Be Shy.. Lets do it!"] Lets Get Started [/button] [/column]February 28, 2014 at 11:49 am #18887
KoryKeymasterHey Richard,
Thanks for writing in! As stated in that original post, the [button] shortcode does not work in this manner as it does not allow you to launch HTML content since there’s no way to add the data-type=“inline” attribute to the link. To do this properly, you’d need to take all of the HTML output by your [button] and write it in manually and then add in the data-type=“inline” attribute yourself. Also, note how the class of the link is the same as the selector attribute on the [lightbox] shortcode and the href attribute on the link points towards the id of the <div> element containing the form. All of this is necessary for this particular setup to work.
<div id="my-content"> [contact-form-7 id="1985" title="Contact form 1"] </div> <div class="x-btn-circle-wrap x-btn-regular x-btn-block"> <a href="#my-content" class="x-btn x-btn-rounded x-btn-regular x-btn-block lightbox-selector" title="Get Started" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="Contact Us or send us any questions you may have.. Dont Be Shy.. Lets do it!" data-type="inline"> Lets Get Started </a> </div> [lightbox selector=".lightbox-selector"]
Thanks!
February 28, 2014 at 2:01 pm #18927
Richard RParticipantThank you for the reply.
With that code you prived the contact was on page AND in the button as a lightbox.. I figured out how to hide it on the page:
<div id="my-contentwedding"style="display: none;"> [column type="full"] [custom_headline style="text-transform: uppercase;" level="h2" looks_like="h4" accent="true"]Contact our Office[/custom_headline] [contact-form-7 id="1517" title="Contact Us"] [/column type] </div> <div class="x-btn-circle-wrap x-btn-regular x-btn-block"> <a href="#my-contentwedding" class="x-btn x-btn-rounded x-btn-regular x-btn-block lightbox-selector" title="Get Started" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="Contact Us or send us any questions you may have.. Dont Be Shy.. Lets do it!" data-type="inline"> Lets Get Started </a> </div> [lightbox selector=".lightbox-selector"]However, when the lightbox opens.. Its very thin and looks awkward. when the ” style=”display: none;”” is in the original “<div id=”my-contentwedding”>” line I even tied to contain the DIV with a full column and half but it doesnt do anything. But the problem is .. when that line isnt there.. the contact form shows in the page and when clicking the button
Thank you
March 1, 2014 at 4:12 am #19046
RubinKeymasterHey Richard,
it probably requires some tweaking since it’s something custom we do not ship out of the box if you need any more help with this let me know exactly the problem maybe with some visual reference to make it easier.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-18735 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
