This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

iframe too large on WordPress page


  1. anneraker
    Member

    I am trying to embed my form to a page on my wordpress blog, and there is an excessive amount of whitespace left on the bottom of the iframe. And, when you move to the review page, it opens scrolled down to where the submit button was on the form page, so you have to scroll up to see the review page info. And, when you hit submit, it refreshes at that same spot again, so you have to scroll up by a lot to get to the Success message.

    I tried using the code posted here for the auto-adjusting frame, but I don't have a way to access the head or body fields, just the actual page content field in the blog page. Is there another way to fix this? It looks terrible. :(
    Here's a link to the form if that helps: http://velvetblueportraits.com/?page_id=220

    Thanks!

    Posted 16 years ago #
  2. yuniar

    Hi,

    Have you tried using the Advanced Embed Code instead of the iframe one?


    MachForm Founder

    Posted 16 years ago #
  3. anneraker
    Member

    I looked at the advanced code, but I don't know where I'd be pasting it for a wordpress page. I tried putting it in the content box where I put the iFrame code (the WYSIWYG box), but that didn't work. Would I need to find the actual page on my server, download that page's .php file, make the changes, and then re-upload it? I'm leery of messing with my .php file because I am using a fairly involved theme that I didn't create myself, and I'm don't want to mess it up. Is there another, easier way of trying the advanced code to see if it will work?

    Posted 16 years ago #
  4. yuniar

    You can use Exec-PHP http://wordpress.org/extend/plugins/exec-php/ -- a wordpress plugin which allows you to execute PHP code iniside a post. So you won't need to modify any PHP code, just paste the code like what you did with the iframe code.

    However, before doing so, I suggest to use the iframe and autoexpanding iframe script here:
    http://www.appnitro.com/forums/topic/auto-expandadjustable-iframe?replies=12

    Just put all those code within your post, no need to put into the header.


    MachForm Founder

    Posted 16 years ago #
  5. anneraker
    Member

    I tried the autoexpanding script, and all it did was add a larger space on top of the form, in addition to the large space on the bottom. I also tried the advanced code, using the Exec-PHP plug-in, and got a messy error message. :( I must be doing something wrong, but I don't know what. Any ideas of what it could be?

    Posted 16 years ago #
  6. yuniar

    Hmm.. that's odd. Try to put your autoexpanding script and let me know. I'll check it.

    If you want private assistance, please mail me: customer.service [at] appnitro.com
    or submit request here: http://www.appnitro.com/support/index.php?pg=request


    MachForm Founder

    Posted 16 years ago #
  7. hink
    Member

    I had problems posting into the Exec-PHP plugin as well and couldn't get it to work. I had to use the iFrame option and that was it.

    Posted 16 years ago #

RSS feed for this topic

Reply