Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a container around the entire widget output. This prevents stylin…
…g inconsistencies between the shortcode and block output. Add a top margin to match the bottom margin of the sub header
  • Loading branch information
dkotter committed Jun 28, 2024
commit 44e8fb553e46b42abc9b2b2425f5bf3bac4a33d7
8 changes: 7 additions & 1 deletion mailchimp_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function mailchimp_sf_signup_form( $args = array() ) {

// See if we have valid Merge Vars
if ( ! is_array( $mv ) ) {
echo '<div class="mc_container">';
echo wp_kses_post( $before_widget );
?>
<div class="mc_error_msg">
Expand All @@ -40,9 +41,12 @@ function mailchimp_sf_signup_form( $args = array() ) {
</div>
<?php
echo wp_kses_post( $after_widget );
echo '</div>';
return;
}

echo '<div class="mc_container">';

if ( ! empty( $before_widget ) ) {
echo wp_kses_post( $before_widget );
}
Expand Down Expand Up @@ -72,7 +76,7 @@ function mailchimp_sf_signup_form( $args = array() ) {
}
#mc_subheader {
line-height: 1.25em;
margin-bottom: 18px;
margin: 18px 0;
}
.mc_merge_var {
margin-bottom: 1.0em;
Expand Down Expand Up @@ -275,6 +279,8 @@ function mailchimp_sf_signup_form( $args = array() ) {
if ( ! empty( $after_widget ) ) {
echo wp_kses_post( $after_widget );
}

echo '</div>';
}

/**
Expand Down