Skip to content

Instantly share code, notes, and snippets.

View krissie-northux's full-sized avatar

krissie-northux

View GitHub Profile
/* PHP/Mark-up used to add the modal to the template */
add_action( 'wp_footer', array( $this, 'email_form_overlay' ), 1 );
function email_form_overlay() {
?>
<div class="modal" aria-describedby='modal-description' aria-hidden="true">
<div class="modal-overlay js-modal-overlay"></div>
<div class="modal-canvas">
<?php gravity_form( 1, false, true, false, array(), true); ?>
<div class="icon-close js-modal-close"></div>