• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Problem Optimizing a Child Theme to Gutenberg

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Problem Optimizing a Child Theme to Gutenberg

This topic is: resolved

Tagged: child theme, Deborah, Gutenberg, optimize

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 11 months ago by dareadel.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 26, 2019 at 3:38 pm #490889
    dareadel
    Participant

    Hello,

    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.

    April 26, 2019 at 5:41 pm #490890
    Victor Font
    Moderator

    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.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 26, 2019 at 5:58 pm #490892
    dareadel
    Participant

    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

    April 26, 2019 at 10:39 pm #490893
    Victor Font
    Moderator

    The issue is not with the block editor file. The issue is that you are missing the customizer files from the child theme lib directory.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 27, 2019 at 11:08 am #490901
    dareadel
    Participant

    Thanks again Victor. It's working now.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Problem Optimizing a Child Theme to Gutenberg’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble