0

Using this php to show a signup form in my template file:

<div style="border: 3px solid green; margin-top: 1em; height: auto">
<h2>Blog notifications</h2>
<?php echo do_shortcode('[forminator_form id="9979"]'); ?>
</div>

Looking like this:

https://drive.google.com/open?id=1CGHp6ezgzeyPtbjA3zhuNAQ9VmmUEjd3

That white block at the bottom is just another div that follows.

The shortcode is not being recognised by the div and is displaying outside it. Not sure why this is.

thanks,

2

1 Answer 1

1

Maybe your form has a float property. So just add overflow hidden to parent div.

Take a look here: https://codepen.io/zecka/pen/jObvbmG

your code can be like that:

<div style="border: 3px solid green; margin-top: 1em; height: auto; overflow: hidden">
<h2>Blog notifications</h2>
<?php echo do_shortcode('[forminator_form id="9979"]'); ?>
</div>
3
  • ZecKa it did the trick: drive.google.com/open?id=1Fo7bbyhW0K_UqY4xUmPXr4k5_H-NhzI7
    – MatJon
    May 14, 2020 at 11:27
  • Am I supposed to click "Post Your Answer" if this is now resolved for me, or do I only do that if I came up with the answer myself?
    – MatJon
    May 14, 2020 at 11:30
  • @MatJon There should be an option to mark ZecKa's answer as accepted, but I believe there's a short wait period before it appears. May 14, 2020 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.