Tagged: child theme, enfold
Hey guys,
I have decided to finally set up a child theme so I can update Enfold. However, I have a few questions beforehand:
1. Must I enqueue stylesheets in the functions.php file of the child theme in order for this to work?
2. Can I export the theme settings from the main theme and import them into the child theme?
3. How can I change the thumbnail image size of the widgets from the child theme since its functions.php is loaded before the parent theme?
4. If I want to override a file in the includes directory, do I have to create an includes directory in the child theme and in it, create the file I want to override with?
Let me know.
Regards!
Hi randomzeus!
1- You can download pre-built child theme here – http://kriesi.at/documentation/enfold/using-a-child-theme/
2- Once you switch to child theme, you can go to Enfold theme options and “import parent theme settings”
3- You can add following code to Functions.php file of your child theme in Appearance > Editor
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['widget'] = array('width'=>80, 'height'=>80);
return $size;
}
4- Yes. Please also see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Cheers!
Yigit