PHP not displaying correctly

Hey guys, just new here. I have a PHP file which takes data from my ecommerce site and populated new order emails etc (woocommerce) but I can’t figure out why it’s not displaying correctly. Everything below the confirmation text should be displaying in 2 columns side by side (customer order details, product, pricing). I have made general edits to the styling but I don’t know how to make it display as it should and unfortunately the author I purchased it from is non-responsive. Link to how it should look and attachment how it displays at my end.


Also php below

<?php
/**
 * Customer processing order email
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates/Emails
 * @version 3.7.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// ************************************//
//				Don't Touch
// ************************************//

$theme_path		= get_stylesheet_directory_uri().'/woocommerce/emails/images'; // Image Path

// *************************************//
//			 Starto Setting File
// *************************************//

include( 'setting-wc-email.php' ); // All Customization in This File

/*
 * @hooked WC_Emails::email_header() Output the email header
 */
do_action( 'woocommerce_email_header', $email_heading, $email );

?>

<!-- Titles : Subtitle Title Button -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="center" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#4B7BEC" class="bg-4B7BEC">

						<!-- 520 -->
						<table border="0" width="520" align="center" cellpadding="0" cellspacing="0" class="row table-520">
							<tr>
								<td align="center" class="container-padding">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
										<tr>
											<td class="spacer-30">&nbsp;</td>
										</tr>

										<tr>
											<td align="center" valign="middle" class="font-primary font-FFFFFF font-16 font-weight-600 pb-5 font-space-0">
												<?php echo __( $processing_order_subtitle ); ?>
											</td>
										</tr>

										<tr>
											<td align="center" valign="middle" class="font-primary font-FFFFFF font-36 font-weight-400 font-space-0 pb-30">
												<?php echo __( $email_heading ); ?>
											</td>
										</tr>

										<tr>
											<td align="center" valign="middle">
												<table border="0" align="center" cellpadding="0" cellspacing="0" >
													<tr>
														<td align="center" class="bg-FFFFFF block btn border-radius-4">
															<a href="<?php echo $order->get_view_order_url(); ?>" class="font-primary font-4B7BEC font-14 font-weight-600 font-space-0-5 block btn white-space">
																<?php printf(  __( $processing_order_btn , 'woocommerce' ) ); ?>
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>

										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- End 520 -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->
			
		</td>
	</tr>
</table>
<!-- Titles : Subtitle Title Button -->

<!-- Headers : Full Image -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="center" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#4B7BEC" class="bg-4B7BEC">

						<!-- 100% -->
						<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
							<tr>
								<td align="center">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
										<tr>
											<td align="center" valign="middle" class="img-responsive">
												<img src="<?php echo $theme_path . "/" . $processing_order_hero_bg_img ?>" border="0" width="600" alt="Header" class="block table-600">
											</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- 100% -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->
			
		</td>
	</tr>
</table>
<!-- Header : Full Image -->

<!-- Contents : Title Description -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="center" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#FFFFFF" class="bg-FFFFFF">

						<!-- 520 -->
						<table border="0" width="520" align="center" cellpadding="0" cellspacing="0" class="row table-520">
							<tr>
								<td align="center" class="container-padding">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
										<tr>
											<td class ="spacer-30">&nbsp;</td>
										</tr>

										<tr>
											<td align="left" valign="middle" class="center-text font-primary font-191919 font-18 font-weight-600 font-space-0 pb-20">
												<?php
													echo __( $processing_order_greeting . " " . $order->get_billing_first_name() . ',' ); 
												?>
											</td>
										</tr>

										<tr>
											<td align="left" valign="middle" class="center-text font-primary font-595959 font-16 font-weight-400 font-space-0 pb-20" style="padding:0px;">
												<?php 
													/* additional content */
													if ( $additional_content ) {
														echo __( wp_kses_post( wptexturize( $additional_content )));
													}

													if ( $order->get_customer_note() != "" ) {
														 echo __( '<br><br> <strong>Note</strong>: ', 'woocommerce' ) ;
														 echo wp_kses_post( $order->get_customer_note() ) ;
													}
												?>
											</td>
										</tr>

										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- End 520 -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->
			
		</td>
	</tr>
</table>
<!-- Contents : Title Description -->

<!-- Dividers : Divider -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="center" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#FFFFFF" class="bg-FFFFFF">

						<!-- 520 -->
						<table border="0" width="520" align="center" cellpadding="0" cellspacing="0" class="row table-520">
							<tr>
								<td align="center" class="container-padding">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>

										<tr>
											<td class="bg-F1F1F1 spacer-1">&nbsp;</td>
										</tr>

										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- End 520 -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->
			
		</td>
	</tr>
</table>
<!-- Dividers : Divider -->

<?php

/*
 * @hooked WC_Emails::customer_details() Shows customer details
 * @hooked WC_Emails::email_address() Shows email address
 */
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );

/*
 * @hooked WC_Emails::order_details() Shows the order details table.
 * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
 * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
 * @since 2.5.0
 */
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

/*
 * @hooked WC_Emails::order_meta() Shows order meta data.
 */
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
?>

<!-- Buttons : Button -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="center" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#FFFFFF" class="bg-FFFFFF">

						<!-- 520 -->
						<table border="0" width="520" align="center" cellpadding="0" cellspacing="0" class="row table-520">
							<tr>
								<td align="center" class="container-padding">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="table-100pc">
										<tr>
											<td class="spacer-20">&nbsp;</td>
										</tr>

										<tr>
											<td align="center" valign="middle">
												<table border="0" align="center" cellpadding="0" cellspacing="0" >
													<tr>
														<td align="center" class="bg-4B7BEC block btn border-radius-4">
															<a href="<?php echo $order->get_view_order_url(); ?>" class="font-primary font-FFFFFF font-14 font-weight-600 font-space-0-5 block btn white-space">
																<?php printf(  __( $processing_order_btn , 'woocommerce' ) ); ?>
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>

										<tr>
											<td class="spacer-30">&nbsp;</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- End 520 -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->
			
		</td>
	</tr>
</table>
<!-- Buttons : Button -->

<?php
/*
 * @hooked WC_Emails::email_footer() Output the email footer
 */
do_action( 'woocommerce_email_footer', $email );

Thanks in advance!
Ty.

Hmm? :thinking: First of all, Welcome to PHPHelp and second the developer sure used outdated HTML/CSS and probably is why you are not getting response back. If I were you, I would look for another developer/designer to do this page or do-it-yourself though the later would you required to learn HTML/CSS as that is where the problem is located. BTW the CSS is something that you did not show or at least I couldn’t find the link to the actual page?

My suggest is look where the page is done in Flex or Grids as that is more current.

Maybe someone else here will have a better solution?

John

Thanks mate, appreciate the response. Though I am an absolute novice, I wondered if there was a conflict in classes, maybe the theme uses the same class name.

From what I see the styling is this (I changed the class to res250 instead of 250) and that seemingly fixed the customer details but that didn’t seem to fix all of it.

.table-res250 {
width: 250px;
max-width: 250px;
margin: 0 auto;
}

As you can see below, this should make the column left align but it keeps reverting to center (see attachment)

<!-- Columns 1 OF 4 -->
												<table width="250" border="0" cellpadding="0" cellspacing="0" align="left !important" class="row table-res250">
													<tr>
														<td align="center" valign="middle" class="img-responsive pb-15">
															<?php
																echo __('
																	<a href="'. $other_product_1_link .'">
																	<img src="'. $theme_path . "/" . $other_product_1_img .'" alt="Product 1" border="0" width="250" class="table-res250 border-radius-8">
																	</a>
																');
															?>
														</td>
													</tr>

													<tr>
														<td align="left" valign="middle" class="center-text font-primary font-191919 font-18 font-weight-400 font-space-0">
															<?php
																echo __( $other_product_1_title );
															?>
														</td>
													</tr>

													<tr>
														<td align="left" valign="middle" class="center-text font-primary font-191919 font-20 font-weight-600 font-space-0">
															<?php
																echo __( $other_product_1_price );
															?>
														</td>
													</tr>
												</table>

Here is the order details PHP

<?php
/**
 * Order details table shown in emails.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-order-details.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates/Emails
 * @version 3.7.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

$text_align = is_rtl() ? 'right' : 'left';

if(isset($order_type) == false ) {
	$order_type = 'order';
}

do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); 

?>

<?php
	echo wc_get_email_order_items( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		$order,
		array(
			'show_sku'      => $sent_to_admin,
			'show_image'    => true,
			'image_size'    => array( 150, 150 ),
			'plain_text'    => $plain_text,
			'sent_to_admin' => $sent_to_admin,
		)
	);
?>

<?php do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>

<!-- Contents : Order Summary -->
<table border="0" width="100%" align="left" cellpadding="0" cellspacing="0" class="table-100pc">
	<tr>
		<td align="center" valign="middle" bgcolor="#F1F1F1" class="bg-F1F1F1">

			<!-- 600 -->
			<table border="0" width="600" align="left" cellpadding="0" cellspacing="0" class="row table-600">
				<tr>
					<td align="center" bgcolor="#FFFFFF" class="bg-FFFFFF">

						<!-- 520 -->
						<table width="520" border="0" cellpadding="0" cellspacing="0" align="center" class="row table-520">
							<tr>
								<td align="center" class="container-padding">

									<!-- Content -->
									<table border="0" width="100%" cellpadding="0" cellspacing="0" align="left" class="table-100pc">
										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>

										<?php 
											$item_totals = $order->get_order_item_totals();
											$numItems = count($item_totals);
											if ( $item_totals ) {
												$i = 0;
												foreach ( $item_totals as $total ) {
													$i++;
										?>
										
										<tr>
											<td align="center" valign="middle">

												<!--[if (gte mso 9)|(IE)]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->
												
												<!-- Columns 1 OF 2 -->
												<table width="250" border="0" cellpadding="0" cellspacing="0" align="left !important" class="row table-res250">
													<?php if ( $i === $numItems ) { ?>
														<tr>
															<td class="spacer-15 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td class="bg-F1F1F1 spacer-1">&nbsp;</td>
														</tr>

														<tr>
															<td class="spacer-30">&nbsp;</td>
														</tr>

														<tr>
															<td align="left" valign="middle" class="center-text font-primary font-191919 font-22 font-weight-600 font-space-0 small capitalize">
																<?php echo wp_kses_post( $total['label'] ); ?>
															</td>
														</tr>
													<?php } else { ?>
														<tr>
															<td align="left" valign="middle" class="center-text font-primary font-595959 font-18 font-weight-400 font-space-0 small capitalize">
																<?php echo wp_kses_post( $total['label'] ); ?>
															</td>
														</tr>
													<?php } ?>
												</table>

												<!--[if (gte mso 9)|(IE)]></td><td><![endif]-->

												<!-- Columns 10px Gaps -->
												<table width="20" border="0" cellpadding="0" cellspacing="0" align="left !important" class="row table-res20">
													<?php if ( $i === $numItems ) { ?>
														<tr>
															<td class="spacer-15 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td class="bg-F1F1F1 spacer-1 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td class="spacer-30 hide-mobile">&nbsp;</td>
														</tr>
													<?php } ?>
														<tr>
															<td valign="middle" align="center" height="10"></td>
														</tr>
												</table>

												<!--[if (gte mso 9)|(IE)]></td><td><![endif]-->

												<!-- Columns 2 OF 2 -->
												<table width="250" border="0" cellpadding="0" cellspacing="0" align="left !important" class="row table-res250">
													<?php if ( $i === $numItems ) { ?>
														<tr>
															<td class="spacer-15 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td class="bg-F1F1F1 spacer-1 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td class="spacer-30 hide-mobile">&nbsp;</td>
														</tr>

														<tr>
															<td align="right" valign="middle" class="center-text font-primary font-191919 font-22 font-weight-600 font-space-0 small small-br capitalize">
																<?php echo wp_kses_post( $total['value'] ); ?>
															</td>
														</tr>
														
														<?php } else { ?>
														<tr>
															<td align="right" valign="middle" class="center-text font-primary font-595959 font-18 font-weight-600 font-space-0 small capitalize">
																<?php echo wp_kses_post( $total['value'] ); ?>
															</td>
														</tr>
														<?php } ?>
												</table>

												<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->

											</td>
										</tr>
										<tr>
											<td class="spacer-15">&nbsp;</td>
										</tr>
										<?php } } ?>
										
										<tr>
											<td class="spacer-5">&nbsp;</td>
										</tr>
									</table>

								</td>
							</tr>
						</table>
						<!-- End 520 -->

					</td>
				</tr>
			</table>
			<!-- End 600 -->

		</td>
	</tr>
</table>
<!-- Contents : Order Summary -->

Here is the styling

<?php
/**
 * Email Styles
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-styles.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates/Emails
 * @version 4.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Load colors.
$bg        = get_option( 'woocommerce_email_background_color' );
$body      = get_option( 'woocommerce_email_body_background_color' );
$base      = get_option( 'woocommerce_email_base_color' );
$base_text = wc_light_or_dark( $base, '#191919', '#ffffff' );
$text      = get_option( 'woocommerce_email_text_color' );

// Pick a contrasting color for links.
$link_color = wc_hex_is_light( $base ) ? $base : $base_text;

// Pick a contrasting color for Btn.
$btn_color = wc_hex_is_light( $base ) ? $base : $base_text;

if ( wc_hex_is_light( $body ) ) {
	$link_color = wc_hex_is_light( $base ) ? $base_text : $base;
}

$text_lighter_31	= wc_hex_lighter( $text, 31 );
$text_lighter_63	= wc_hex_lighter( $text, 63 );

// !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
// body{padding: 0;} ensures proper scale/positioning of the email in the iOS native email app.

?>


body {
	margin: 0px !important;
	padding: 0px !important;
	display: block !important;
	min-width: 100% !important;
	width: 100% !important;
	-webkit-text-size-adjust: none;
	word-break:break-word;
}

table {
	border-spacing: 0;
	mso-table-lspace: 0pt;
	mso-table-rspace: 0pt;
}

table td {
	border-collapse: collapse;
}

strong {
	font-weight: bold !important;
}

td img {
	-ms-interpolation-mode: bicubic;
	display: block;
	width: auto;
	max-width: auto;
	height: auto;
	margin: auto;
	display: block !important;
	border: 0px!important;
}

td p {
	margin: 0 !important;
	padding: 0 !important;
	display: inline-block !important;
	font-family: inherit !important;
}

td a {
	text-decoration: none !important;
	border:0px;
}

a[x-apple-data-detectors] {
	color: inherit !important;
	text-decoration: none !important;
	font-size: inherit !important;
	font-family: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.ExternalClass {
	width: 100%;
	line-height: inherit;
}

.ReadMsgBody {
	width:100%;
	background-color: #ffffff;
}


.font-primary {
	font-family: 'Poppins', Helvetica, Trebuchet MS, Verdana, sans-serif;
}


.table-100pc {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.table-res10 {
	width: 10px;
	max-width: 10px;
	margin: 0 auto;
}

.table-res20 {
	width: 20px;
	max-width: 20px;
	margin: 0 auto;
}

.table-res90 {
	width: 90px;
	max-width: 90px;
	margin: 0 auto;
}

.table-res100 {
	width:100px;
	max-width:100px;
}

.table-res250 {
	width: 250px;
	max-width: 250px;
	margin: 0 auto;
}

.table-res255 {
	width: 255px;
	max-width: 255px;
	margin: 0 auto;
}

.table-res300 {
	width: 300px;
	max-width: 300px;
	margin: 0 auto;
}

.table-520 {
	width: 520px;
	max-width: 520px;
	margin: 0 auto;
}

.table-570 {
	width: 570px;
	max-width: 570px;
	margin: 0 auto;
}

.table-600 {
	width: 600px;
	max-width: 600px;
	margin: 0 auto;
}

.inline {
	display: inline-block;
}

.block {
	display: block;
}



.bg-F1F1F1 {
	background-color: <?php echo esc_attr( $bg ); ?>;
}

.bg-FFFFFF {
	background-color: <?php echo esc_attr( $body ); ?>;
}

.bg-4B7BEC {
	background-color: <?php echo esc_attr( $base ); ?>;
}

.bg-191919 {
	background-color: <?php echo esc_attr( $text ); ?>;
}

.bg-D1F3E6 {
	background-color: #D1F3E6;
}

.bg-FFF6D6 {
	background-color: #FFF6D6;
}

.bg-FEDEE0 {
	background-color: #FEDEE0;
}



.font-4B7BEC {
	color: <?php echo esc_attr( $base ); ?>;
}

.font-FFFFFF {
	color:#FFFFFF;
}

.font-191919 {
	color: <?php echo esc_attr( $text ); ?>;
}

.font-595959 {
	color: <?php echo esc_attr( $text_lighter_31 ); ?>;
}

.font-999999 {
	color: <?php echo esc_attr( $text_lighter_63 ); ?>;
}

.font-18C184 {
	color:#18C184;
}

.font-FED330 {
	color:#FED330;
}

.font-FC5C65 {
	color:#FC5C65;
}


.font-12 {
	font-size: 12px;
	line-height: 22px;
}

.font-14 {
	font-size: 14px;
	line-height: 24px;
}

.font-16 {
	font-size: 16px;
	line-height: 26px;
}

.font-18 {
	font-size: 18px;
	line-height: 28px;
}

.font-20 {
	font-size: 20px;
	line-height: 30px;
}

.font-22 {
	font-size: 22px;
	line-height: 32px;
}

.font-36 {
	font-size: 36px;
	line-height: 46px;
}



.font-weight-400 {
	font-weight: 400;
}

.font-weight-600 {
	font-weight: 600;
}



.spacer-1 {
	height: 1px;
	font-size: 1px;
	line-height: 1px;
}

.spacer-5 {
	height: 5px;
	font-size: 5px;
	line-height: 5px;
}

.spacer-10 {
	height: 10px;
	font-size: 10px;
	line-height: 10px;
}

.spacer-15 {
	height: 15px;
	font-size: 15px;
	line-height: 15px;
}

.spacer-20 {
	height: 20px;
	font-size: 20px;
	line-height: 20px;
}

.spacer-30 {
	height: 30px;
	font-size: 30px;
	line-height: 30px;
}

.spacer-40 {
	height: 40px;
	font-size: 40px;
	line-height: 40px;
}

.spacer-60 {
	height: 60px;
	font-size: 60px;
	line-height: 60px;
}



.font-normal { 
	font-style:normal;
}

.font-space-0 {
	letter-spacing: 0px;
}

.font-space-0-5 {
	letter-spacing: 0.5px;
}



.text-decoration-none {
	text-decoration:none;
}

.font-underline { 
	text-decoration: underline; 
}



.pb-5 {
	padding: 0;
	padding-bottom: 5px;
}

.pb-15 {
	padding: 0;
	padding-bottom: 15px;
}

.pb-20 {
	padding: 0;
	padding-bottom: 20px;
}

.pb-30 {
	padding: 0;
	padding-bottom: 30px;
}

.pb-40 {
	padding: 0;
	padding-bottom: 40px;
}

.plr-10 {
	padding: 0px 10px;
}

.plr-20 {
	padding: 0px 20px;
}



.border-radius-4 {
	border-radius:4px;
}

.border-radius-8 {
	border-radius:8px;
}



.white-space {
	white-space: nowrap;
}



.btn {
	mso-padding-alt: 16px 60px 16px 60px;
}

.btn a {
	padding: 16px 60px 16px 60px;
	white-space: nowrap;
}

.small small {
	color: <?php echo esc_attr( $text_lighter_63 ); ?>;
	font-size: 12px;
	line-height: 22px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.small-br small {
	display: block;
}

.uppercase {
	text-transform: uppercase;
}

.capitalize {
	text-transform: capitalize;
}


@media only screen and (max-width:600px) {
	td.img-responsive img {
		width: 100% !important;
		max-width: 100%!important;
		height: auto!important;
		margin: auto;
	}

	table.row {
		width: 100%!important;
		max-width: 100%!important;
		align: left!important;
	}

	table.center-float,
	td.center-float {
		float: none!important;
	}

	td.center-text {
		text-align: center!important;
	}

	td.container-padding {
		width: 100%!important;
		padding-left: 15px!important;
		padding-right: 15px!important;
	}

	table.hide-mobile,
	tr.hide-mobile,
	td.hide-mobile,
	br.hide-mobile {
		display: none!important;
	}

	td.menu-container {
		text-align: center !important;
	}

	td.autoheight {
		height: auto!important;
	}

	table.mobile-padding {
		margin: 15px 0!important;
	}

	td.br-mobile-none br {
		display: none!important;
	}
}


<?php

Here is a screenshot of how it displays and google search console.

I seem to have fumbled my way through it. I have looked into the demo from the Dev and none of those classes were actually in there so I have removed the table-XX classes from the PHP entirely and left “row” as the only class and its fixed it entirely.

A bit annoying and probably not the best way to go about it but it works for now until I can implement a better solution. It would take me days to custom code these emails from scratch as my knowledge is super basic so I will take your suggestions on board and start building using updated HTML/CSS

Sponsor our Newsletter | Privacy Policy | Terms of Service