@jandieckmann
Sorry for the late respond, I didn’t saw your reaction.
Here is the single page template I used. (Now I have an another solution, but I works):
<?php
/*
* Template Name: Name of template, visible is the UI
* Template Post Type: page
*/
get_header(); ?>
<section id="primary" class="content-single content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'page' );
comments_template();
endwhile; ?>
<!--The form for subscription. Directly below the page content, above the footer. -->
<div>
<form class="es_shortcode_form" data-es_form_id="es_shortcode_form">
<div class="es_lablebox"><label class="es_shortcode_form_name">Naam</label></div>
<div class="es_textbox"><input name="es_txt_name_pg" class="es_textbox_class" id="es_txt_name_pg" type="text" maxlength="225" value="<?php
global $curren_tuser;
get_currentuserinfo();
echo $current_user->display_name;
?>"></div>
<div class="es_textbox"><input name="es_txt_email_pg" class="es_textbox_class" id="es_txt_email_pg" style="" type="hidden" maxlength="225" value="<?php
global $curren_tuser;
get_currentuserinfo();
echo $current_user->user_email;
?>"></div>
<div class="es_button"><input name="es_txt_button_pg" class="es_textbox_button es_submit_button" id="es_txt_button_pg" onclick="return es_submit_pages(event, 'https://thomasatsea.nl/blog')" type="button" value="Abonneren"></div>
<div class="es_msg" id="es_shortcode_msg"><span id="es_msg_pg"></span></div>
<input name="es_txt_group_pg" id="es_txt_group_pg" type="hidden" value="Nieuw bericht">
</form>
</div>
</main><!-- #main -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
I hope this is useful for you.
-
This reply was modified 6 years, 7 months ago by tkreeft.