This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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