Tagged: child theme
-
AuthorPosts
-
April 4, 2014 at 5:08 am #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!
April 4, 2014 at 1:15 pm #247421Hey 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!
DevinApril 4, 2014 at 7:55 pm #247613Thanks Devin, I will wait for it. Until then, I have modified the parent.
D
April 7, 2014 at 10:30 am #248103Turns 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;September 1, 2016 at 6:18 am #680483This is awesome and it works… now how do I remove all of the pre-packaged styles and only show my custom made ones?
September 5, 2016 at 6:50 am #681952 -
AuthorPosts
- You must be logged in to reply to this topic.
