PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to add a form to the Maintenance Mode plugin

  1. Jane
    Member

    Hi all,

    I would like to add a gravity form to the maintenance mode plugin page. I've changed to a customised 503.php page.

    What do I need to do in order to make this work?

    Thanks.

    Posted 12 years ago on Thursday July 28, 2011 | Permalink
  2. You should be able to embed a form in your 503.php page template using the php function call.

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    Just remember that you'll need to manually enqueue your scripts/CSS if you use the function call.

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 12 years ago on Thursday July 28, 2011 | Permalink
  3. Jane
    Member

    I inserted <?php gravity_form(1, false, false, false, '', false); ?> into the body of 503.php

    But I'm using Genesis with the Delicious child theme and the header.php only exists for the parent theme. There's also a warning not to alter that particular header.php file.

    Thanks.

    Posted 12 years ago on Thursday July 28, 2011 | Permalink
  4. I'm not sure then. You'll want to contact the StudioPress support team for guidance on that. You do need to have the wp_head() function call included in the page header and the wp_foot() function call included in the page footer so the forms scripts/css are loaded properly.

    I'm not sure if the maintenance mode plugin supports shortcodes, but you might try adding the form shortcode there and see if it works.

    Posted 12 years ago on Thursday July 28, 2011 | Permalink