Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #247323

    Hello all,

    I am wondering if anyone can help me figure out how to make the following change. I would like to add another option to my color_sets array in my Enfold Child theme’s functions.php file.

    I found this in the functions.php file, but when I added (and modified) it to the child nothing happened.

    $avia_config['color_sets'] = array(
        'header_color'      => 'Header',
        'main_color'        => 'Main Content',
        'alternate_color'   => 'Alternate Content',
        'footer_color'      => 'Footer',
        'socket_color'      => 'Socket'
     );

    Basically, I would like it to look like so when I am done:

    $avia_config['color_sets'] = array(
        'my_custom_color_set'     => 'My Custom Color Set Name',
        'header_color'      => 'Header',
        'main_color'        => 'Main Content',
        'alternate_color'   => 'Alternate Content',
        'footer_color'      => 'Footer',
        'socket_color'      => 'Socket'
     );

    Thanks in advance!

    #247421

    Hey dustingrof!

    I’ve asked Kriesi to add a filter so a new array can get added to the color sets but it has not been added in yet. As far as I know the only way to add another pre-set color scheme is in the parent file with the others.

    Cheers!
    Devin

    #247613

    Thanks Devin, I will wait for it. Until then, I have modified the parent.

    D

    #248103

    Turns out this has been in place since release but I missed it. You can filter in your own set with avf_skin_options. Eg:
    add_filter('avf_skin_options', 'my_custom_added_style_function');

    and

    
    function my_custom_added_style_function($styles = "")
    {
    
    $styles["Style Name"] = array(
    
    );
    return $styles;
    
    #680483

    This is awesome and it works… now how do I remove all of the pre-packaged styles and only show my custom made ones?

    #681952

    Hi,

    I’m not sure if that would be possible but send us a link to your site and we’ll have a closer look.

    Thanks,
    Rikard

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