- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by .
- The topic ‘Problem Optimizing a Child Theme to Gutenberg’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I was using the Studiopress instructions to optimize the Deborah child theme to Gutenberg and I am getting the following error message:
Your PHP code changes were rolled back due to an error on line 11 of file wp-content/themes/deborah/config/block-editor-settings.php. Please fix and try saving again. Uncaught Error: Call to undefined function altitude_customizer_get_default_link_color() in wp-content/themes/deborah/config/block-editor-settings.php:11 Stack trace: #0 wp-content/themes/genesis/lib/functions/general.php(146): require() #1 wp-content/themes/deborah/lib/gutenberg/init.php(57): genesis_get_config('block-editor-se...') #2 wp-content/themes/deborah/functions.php(323): require_once('/Applications/M...') #3 wp-includes/class-wp-hook.php(286): genesis_child_gutenberg_support('') #4 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 wp-includes/plugin.php(465): WP_Hook->do_action(Array) #6 wp-settings.php(489): do_action('a
I got the same message with other child theme too. I will appreciate any assistance.
It looks like your copy code from Altitude Pro and missed something. This is the line in the error stack that tells you what you missed:
Call to undefined function altitude_customizer_get_default_link_color() in wp-content/themes/deborah/config/block-editor-settings.php:11
You need the customize.php file from Altitude Pro's lib directory. There may be other files you need as well.
Thanks again Victor. Always very helpful.
I followed the instructions, is there any additional steps behold that? I even went and replace $altitude with $deborah in the block-editor-settings.php file but still getting same error message
Thanks again Victor. It's working now.
© 2023 WPEngine, Inc.