I’m getting this error on both the Enfold and the child theme I created: Fatal error: Call to undefined function avia_get_option() in /home/content/p3pnexwpnas06_data02/77/2901877/html/wp-content/themes/enfold/header.php on line 5.
Background is I haven’t created a Child theme before so looked up on the Internet how to do it before looking at your documentation. It was old info as I discovered and said to us the @import to bring in the parent CSS (which I realize now I didn’t need). In any event, it still worked fine and I was able to activate it and change the main Enfold settings. I then read more about child themes here: https://codex.wordpress.org/Child_Themes I took the line out of the style.css so it was basically empty except for the header and put this into the functions.php child theme file:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
At this point, i got the above error. I then read your documentation and saw that you had the files set up already so i copied them to my child theme folder and deleted the ones that were there but I still have the error. Not sure what to do at this point. Any help would be appreciated.
Never mind, I figured it out. The main functions.php file somehow got deleted.