Tagged: x
-
AuthorPosts
-
February 27, 2017 at 9:06 am #1387345
Antony HParticipantHi there, I’ve added a form to a lightbox [using an iframe because it’s on an external site] and it works perfectly on desktop, but on mobile there is too much margin around the lightbox window so not all of the form width is visible.
If you go to the site and click the ‘request a valuation today’ button on the homepage you’ll see what I mean.
How do I make the lightbox window bigger please?
Thanks in advance.
February 27, 2017 at 9:06 am #1387349
Antony HParticipantThis reply has been marked as private.February 27, 2017 at 9:49 am #1387394
JoaoModeratorHi Antony
Please try adding the following code to Appereance Customizer Custom CSS
@media(max-width: 769px) { .ilightbox-holder.light { width: 100%; margin: 0; left: 0; }}Let us know how it goes, if that does not work, please provide your admin credentials so we can take a closer look on your setup
Thanks
February 27, 2017 at 10:08 am #1387428
Antony HParticipantThanks Joao, that did “something” but if you look on mobile it’s not quite right!
Thanks again.
February 27, 2017 at 10:15 am #1387437
JoaoModeratorWould you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
February 27, 2017 at 10:19 am #1387443
Antony HParticipantThis reply has been marked as private.February 27, 2017 at 10:44 am #1387474
JoaoModeratorHi There,
I would give you a different setup suggestion.
Create a page in X without header or footer , to do that when you create a new page, under the blue update button on wp classic editor, you will find > Page Attributes > Page Templates
Select: Blank No Container No Header No Footer
Place the form on this page.
—————-
On your home page
add a raw code element and add
[lightbox selector=”.lightbox-selector”]
Add a button element and link it to the page you have created.
Also add the class lightbox-selector to the button.
let us know how it goes,
Joao
February 27, 2017 at 10:50 am #1387481
Antony HParticipantThanks Joao, I appreciate your help and I’ll happily give that a go.
The form is on another website, so I’ll still need to use the iframe. The current code I’m using is
<div style="display:none;" id="my-content"> <iframe style="height: 500px;" src="http://real-etc.page.lettinglead.com/iframe-landing-page"></iframe> </div> <a href="#my-content" class="lightbox-selector x-btn" data-type="inline">REQUEST A VALUATION TODAY</a> [lightbox selector=".lightbox-selector"]Please can you advise what the new code will be if I call the new page /valuation-form ?
Thank you
February 27, 2017 at 11:15 am #1387521
JoaoModeratorHi Antony,
I did +- what I explained before, on this page i created, called iframe I placed the iframe.
I also added a css to customizer to hide the cart.
Take a look on how it works now, I believe it is much better
Your original lightbox code is here :
<div style="display:none;" id="my-content"> <iframe style="height: 500px;" src="http://real-etc.page.lettinglead.com/iframe-landing-page"></iframe> </div> <a href="#my-content" class="lightbox-selector x-btn" data-type="inline">REQUEST A VALUATION TODAY</a> [lightbox selector=".lightbox-selector"]Hope it helps
Joao
February 27, 2017 at 11:24 am #1387541
Antony HParticipantWow Joao, thank you. You are a superstar and really went above and beyond to help me.
The only issue is that the form doesn’t show on mobile. The lightbox opens but there is no form and the there is just this weird shap showing. The shape also shows on desktop although the form also appears if I scroll the mouse wheel.
February 27, 2017 at 11:29 am #1387550
JoaoModeratorHi,
Your form loads on my desktop and Android Phone perfectly.
It does take a few second…
If the strange shape is the loader on top, you can get rid of it by adding the following code to Appereance Customizer Custom CSS.
ilightbox-loader.horizontal div { display: none; }Please remember to clean your browser cache on desktop and mobile and try again.
Thanks
February 27, 2017 at 11:59 am #1387594
Antony HParticipantAh, thanks Joao you are correct! I see it now but it takes 10-15 seconds to load. Is there a way to improve this please? The old method loaded almost instantly.
Thanks again.
February 27, 2017 at 12:09 pm #1387608
JoaoModeratorHi,
We could try a complete different method if you agree. The lightbox is not exactly made for the purpose we are trying now.
Have you ever used X Addon, Convert Plug?
It is a popup addon.
You can launch it from a button and you also can place a custom form. I believe the Iframe should work fine there.
You can try in a different page maybe if you prefer, just for testing purposes.
But you need >
1- Go to Addons Install Convert Plug.
2- Create a modal and place the de iframe in the custom form, the code will render live just not while in ConvertPlug Editor.
3- Add laucher class to your modal.
4- Go to Cornerstone create a button link it to # and ad the launcher class.
You will be ablet to achieve all that with the documentation above.
I guess this is a good strategy, but not 100% sure yet 🙂
Give it a try
Joao
February 27, 2017 at 12:12 pm #1387615
Antony HParticipantCool, I’ll give it a go. Thanks again for all of your help.
February 27, 2017 at 12:16 pm #1387631
JoaoModeratorLet us know if you need further help
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1387345 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
