This content has been marked as final. Show 4 replies
This line of php is responsible for where the landing page elements get dropped if you drag them over in the editor:
<?php echo $mContext['bodyElements']; ?>
So, in your template, you could move that line inside the responsive div.
The drawback there is that all of the landing page elements, not just forms but also rich text blocks, images, etc. would all get dropped inside that div.
In general, we advise against using the embed code on Marketo landing pages, as we've seen it create problems in the past - there are ways in which Marketo forms interact with Marketo landing pages (prefill, progressive profiling) that the embed code wasn't designed for.
Please use the default setup of the form that Marketo provides and then in Landing page template overide the style of the div where the form is. Replace the postion:absolute with position:relative.
You can email me on firstname.lastname@example.org, if face any problem.
Thanks for the help! I feel like we're close. I've added that code, and added a form. To get it to work, I needed to remove the absolute properties that are added to it by default when you drag it into Marketo. However, I now seem to be getting a weird issue where my form has doubled, and then displays in two places. The area on the rigtht hand side is right, and is moving with the responsive page as it should. However, the one on the left I definitely don't want. Any ideas?
Here's the link:
when #include_form is your place (<div id="include_form">) for form in LP.
It works great.