Tagged: child theme
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!
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
Thanks Devin, I will wait for it. Until then, I have modified the parent.
D
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;
This is awesome and it works… now how do I remove all of the pre-packaged styles and only show my custom made ones?