-
AuthorPosts
-
October 9, 2021 at 4:12 pm #1324220
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.
October 11, 2021 at 1:55 pm #1324422Hey 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ünterOctober 14, 2021 at 7:26 pm #1324986Yes you are right – but the original post is closed for new replies – so i couldn’t ask the Topic Originator.
October 26, 2021 at 12:05 pm #1326471@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 );October 27, 2021 at 9:55 am #1326631ok – 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 );;)
October 27, 2021 at 1:32 pm #1326679Hi,
@Guenni007 glad you figured it out and thanks for sharing your solution :)
@Webvriend Thanks for sharing the example :)Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.
