Skip to content

Commit f71dd55

Browse files
committed
Move subheader outside of the form.
1 parent a4000a3 commit f71dd55

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

includes/blocks/mailchimp/markup.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ function ( $single_list ) {
181181
</h2>
182182
<?php
183183
}
184+
if ( $sub_heading ) {
185+
?>
186+
<div id="mc_subheader">
187+
<h3>
188+
<?php echo wp_kses_post( $sub_heading ); ?>
189+
</h3>
190+
</div><!-- /mc_subheader -->
191+
<?php
192+
}
184193
?>
185194
<div id="mc_signup">
186195
<form method="post" action="#mc_signup" id="mc_signup_form">
@@ -192,15 +201,6 @@ function ( $single_list ) {
192201
<input type="hidden" name="mailchimp_sf_hash" value="<?php echo esc_attr( $hash ); ?>" />
193202
<?php
194203
wp_nonce_field( 'mc_submit_signup_form', '_mc_submit_signup_form_nonce', false );
195-
if ( $sub_heading ) {
196-
?>
197-
<div id="mc_subheader">
198-
<h3>
199-
<?php echo wp_kses_post( $sub_heading ); ?>
200-
</h3>
201-
</div><!-- /mc_subheader -->
202-
<?php
203-
}
204204
?>
205205
<div class="mc_form_inside">
206206
<div id="mc_message">

0 commit comments

Comments
 (0)