gotrls_style_presets

Updated 14 September 2026

On this page

Description

Adds or changes the style presets that are offered on the Style tab. Every preset has a label, a description and a settings array with the style settings of the form (the same keys as the form settings). Custom presets saved by the user are in the array as well, with custom set to true.

Parameters

$presets | Array. The presets keyed by id, each with label, description, settings and custom

Return

Array

Usage

Copy the below code to the functions.php of your child theme or to your snippet plugin.

<?php
add_filter( "gotrls_style_presets", function( $presets ) {
    // Start from the Minimal preset and change the total colour.
    $mine                                   = $presets['minimal'];
    $mine['label']                          = 'Company';
    $mine['description']                    = 'Minimal with our brand colour for the total.';
    $mine['settings']['gotrgf_total_font_color'] = '#0a5f9e';
    $presets['company']                     = $mine;
    return $presets;
} );

Since

version 2.2.0

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top