Customise the Fluent Form email template colours

tdrayson

Fluent Forms has a nice looking email template for form submissions. However sometimes you might want to customise this to match your website branding. We can hook into Fluent Forms and modify the colours that are used.

Add the code below to functions.php or code snippet plugin. Modify the values for the different items as you need.

PHP

        <?php

function tct_email_template_colours($colors){
    $colors = array(
        'background_color'      => '#f6f6f6',
        'body_background_color' => '#ffffff',
        'base_color'            => '#444444',
        'text_color'            => '#444444'
    );

    return $colors;
}
add_filter('fluentform/email_template_colors', 'tct_email_template_colours', 10, 1);
      
Copy