Plugin Directory

Changeset 3773702


Ignore:
Timestamp:
10/29/2026 06:00:54 PM (39 hours ago)
Author:
pristadigital
Message:

TokenForge readme: developer example as inline code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tokenforge/trunk/readme.txt

    r3773698 r3773702  
    9696This is code, not a setting. Put it in a child theme's functions.php or in a mu-plugin, never in TokenForge's own files, so an update does not remove it.
    9797
    98 `
    99 add_filter( 'tokenforge_global_scss', function ( $scss ) {
    100         $scss .= '.pricing { padding: var(--space-m); }';
    101         $scss .= '.pricing a { @include btn(primary); }';
    102         return $scss;
    103 } );
    104 `
     98Example: add `add_filter( 'tokenforge_global_scss', 'my_pricing_scss' );` to your functions.php, then define `my_pricing_scss( $scss )` so it appends `.pricing { padding: var(--space-m); }` to `$scss` and returns it.
    10599
    106100== Installation ==
Note: See TracChangeset for help on using the changeset viewer.