How can I center the title and text excerpt along with make it display Century Gothic 12 pt fonts?

Hey folks,

How can I center the title and text excerpt along with make it display Century Gothic 12 pt fonts?

See the attached image.

:slight_smile:

  • Vaughan

    Hi Greg,

    Hope you're well?

    You would need to edit the actual mail template for this,

    you can find the template by using FTP.

    /wp-content/plugins/subscribe-by-email/inc/templates/mail-template.php

    Then open up and edit the content function.

    public function the_content( $content ) {
    
    		$text_float = ( $this->settings['featured_image'] ) ? 'style="float:left;width: 394px;"' : '';
    		$meta_float = ( $this->settings['featured_image'] ) ? 'float:right;' : 'float:none;';
    
    		$title_style = 'style="font-weight: 500; font-size: 21px;line-height: 30px; margin-top:25px; margin-bottom: 10px;"';
    		$text_style = 'style="margin:1em 0;font-size: 13px;color:#000 !important;line-height: 23px;"';
    		$link_style = 'style="font-size: 15px;color:#21759B !important"';
    		$meta_style = 'style="margin:0em 0 2.2em 0;font-size: 13px;color:#9E9E9E !important;' . $meta_float . '"';
    		$featured_image_style = 'max-width:150px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);float:left;background:#FFFFFF;border:1px solid #DEDEDE;padding:4px;margin:0 10px 10px 0;';
    		$featured_image_style_dummy = 'background:#DEDEDE !important;width:150px;height:100px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);float:left;border:1px solid #DEDEDE;padding:4px;margin:0 10px 10px 0;';

    Then further below you will see the html content area code, so you can adjust the code their to match, it may take you a few goes to get it right.

    <?php if ( ! $this->dummy && $this->settings['featured_image'] && has_post_thumbnail() ): ?>
    						<?php the_post_thumbnail( 'thumbnail', $attr = array( 'style' => $featured_image_style ) ); ?>
    					<?php elseif ( $this->dummy && $this->settings['featured_image'] ): ?>
    						<div style="<?php echo $featured_image_style_dummy; ?>"></div>
    					<?php endif; ?>
    					<div <?php echo $text_float; ?>>
    						<h3 style="margin-top:0;"><a <?php echo $title_style; ?> href="<?php echo $permalink; ?>" target="_blank"><?php echo $title; ?></a> </h3>
    						<div <?php echo $text_style; ?>>
    							<?php if ( $this->settings['send_full_post'] ): ?>
    								<?php the_content(); ?>
    							<?php else: ?>
    								<?php the_excerpt(); ?>
    							<?php endif; ?>
    						</div>
    					</div>
    					<div style="clear:both;"></div>
    					<div <?php echo $meta_style; ?>>
    						<?php printf( __( 'by %s on %s', INCSUB_SBE_LANG_DOMAIN ), get_the_author(), get_the_date( $date_format ) ); ?>
    					</div>
    					<div style="clear:both;"></div>

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.