I tried to add the new code to: class-framework-widgets.php (framework/php/class-framework-widgets.php) but I get this error:
Your PHP code changes were rolled back due to an error on line 3038 of file wp-content/themes/enfold/framework/php/class-framework-widgets.php. Please fix and try saving again.
Uncaught Error: Class ‘av_google_maps’ not found in wp-content/themes/enfold/framework/php/class-framework-widgets.php:3038
Stack trace:
#0 wp-includes/class-wp-hook.php(286): avia_google_maps->helper_print_google_maps_scripts(‘theme-editor.ph…’)
#1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 wp-admin/admin-header.php(97): do_action(‘admin_enqueue_s…’, ‘theme-editor.ph…’)
#4 wp-admin/theme-editor.php(140): require_once(‘/home/bbemo/dom…’)
#5 {main}
thrown
Hey,
You are currently using an older version of the theme. Please update Enfold to the latest version 4.3.2 – https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#reinstall-or-update-using-ftp
Regards,
Yigit
Thanks!
Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Best regards,
Yigit