Snippet: Adding Your Own Accent Elements
// Add more elements to the accent color backgrounds
function my_accent_backgrounds( $elements ) {
$elements[] = '.your-custom-class';
return $elements;
}
add_filter( 'wpex_accent_backgrounds', 'my_accent_backgrounds' );
// Add more elements to the accent color borders
function my_accent_borders( $elements ) {
$elements[] = '.your-custom-class';
return $elements;
}
add_filter( 'wpex_accent_borders', 'my_accent_borders' );
// Add more elements to the accent color texts
function my_accent_texts( $elements ) {
$elements[] = '.your-custom-class';
return $elements;
}
add_filter( 'wpex_accent_texts', 'my_accent_texts' );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
We recommend Code Snippets (100% Free) or WPCode (sponsored)