• 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

genesis_unregister_layout throwing error

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 › genesis_unregister_layout throwing error

This topic is: resolved

Tagged: layout, unregister layout

  • This topic has 3 replies, 2 voices, and was last updated 6 years, 3 months ago by AnitaC.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 15, 2020 at 8:46 am #497975
    SteveWilkison
    Member

    Working on a child theme, trying to delete a few layouts.

    I copied this code into the child functions.php file, directly from the documentation here:

    Unregister the Genesis Layout Settings

    genesis_unregister_layout( 'content-sidebar' );

    But it throws an error. Any ideas what I am doing wrong?

    Thanks for any guidance.

    April 15, 2020 at 11:40 am #497977
    AnitaC
    Keymaster

    What does the error say? That would be helpful. Also if you're creating a theme from scratch there could be a ton of reasons why you're getting that error.


    Need help with customization or troubleshooting? Reach out to me.

    April 15, 2020 at 11:45 am #497980
    SteveWilkison
    Member

    Thanks, Anita, I appreciate your help. I didn't have it inside the function it needed to be in, once I put it there it was all good.

    April 15, 2020 at 12:36 pm #497981
    AnitaC
    Keymaster

    Okay.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘genesis_unregister_layout throwing error’ 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

© 2026 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