Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1324422

    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

    #1324986

    Yes you are right – but the original post is closed for new replies – so i couldn’t ask the Topic Originator.

    #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 );
    #1326631

    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 );

    ;)

    #1326679

    Hi,


    @Guenni007
    glad you figured it out and thanks for sharing your solution :)


    @Webvriend
    Thanks for sharing the example :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.