sorry topic is colosed – but i like to know what is about that filter
By the way, it would be very nice if for all the new filters (as of 4.8.4 there are quite a few more) that are added, short examples or descriptions could appear in GitHub.
Hey Guenter,
As far as I remember this filter was requested by a user.
By adding a new element to the array you add a new tab to Theme Options -> General Styling with all the color options you see e.g. in Logo Area.
So you can define a custom color scheme.
I did not dig deeper into that yet – but I hope this info helps you.
If not, let me know and I have a closer look.
I will try to add examples for new filter to github.
Best regards,
Günter
Yes you are right – but the original post is closed for new replies – so i couldn’t ask the Topic Originator.
@Guenni
I use the filter a lot see example:
<?php
/**
* Add a new color set
* @since 4.8.7
*
* All default Enfold color sets
* Logo Area
* Main Content
* Alternate Content
* Footer
* Socket
*/
function wv_color_sets($color_sets)
{
$color_sets['tertiary_color'] = 'tertiary';
return $color_sets;
}
add_filter( 'avf_color_sets', 'wv_color_sets', 999, 1 );
ok – thanks – that is very usefull. And it is as option in dropdown on Styling Tab “Color Section”
Are there any ALB other than Color-Section and Grid-Row that have the “Background-Color” option?
Edit : ok – and i tested that nomenklatura is free of use f.e.:
function guennis_color_set($color_sets){
$color_sets['guennis_color'] = 'Guenni';
return $color_sets;
}
add_filter( 'avf_color_sets', 'guennis_color_set', 999, 1 );
;)
Hi,
@Guenni007 glad you figured it out and thanks for sharing your solution :)
@Webvriend Thanks for sharing the example :)
Best regards,
Yigit