How to override templates in your child theme

If you want to customize the various templates in Groundhogg you can do so by defining a groundhogg-templates folder in your child theme and overriding any template files there.

Your child theme directory may look like this if you wanted to replace the email header template.

Theme Folder
  - groudhogg-templates
    - emails
      - header-default.php

You can download this repository template (either from Github or using a tool like download-directory) into your child theme to start making modifications to the Groundhogg templates.

Replacement codes are not processed for the entire email body content. To add an unsubscribe link, for example, see the code below.
<?php	
	$unsub_link = apply_filters( 'groundhogg/email_template/unsubscribe_link', home_url() );
?>

<a href="<?php echo esc_url( $unsub_link ); ?>">Unsubscribe</a>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us