Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
Template Name: Página Contacto
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( isset($_GET['sent']) ){
if ( $_GET['sent'] == '1'){
echo "<p> ✔ Formulario enviado correctamente</p><br>";
}
else {
echo "<p> Hubo un error al enviar</p><br>";
}
}
?>
<form method="post" action="<?php echo admin_url( 'admin-post.php' ) ?>" >
<label for="name">Nombre:</label>
<input type="text" name="name" id="name" required>
<br>
<label for="email">Correo:</label>
<input type="email" name="email" id="email" required>
<br>
<label for="message">Mensaje:</label>
<textarea name="message" id="message" cols="30" rows="10" required></textarea>
<br>
<input type="hidden" name="action" value="process_form">
<input type="submit" name="submit" value="Enviar">
</form>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .wrap -->
<?php get_footer();
@annieruci
Copy link

annieruci commented Apr 7, 2019

Como podria hacerlo para el Tema massive-dynamic ya que el fichero page.php no se divide en secciones y solo aparece la funcción pixflow_generate_page('page'); que te carga toda la pagina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment