• 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

layout whitlisting

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 › Genesis Blocks › layout whitlisting

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by AnitaC.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 21, 2021 at 9:49 am #504071
    Liverson
    Participant

    Hello,

    i tried to whitelist only a few sections and layouts with

    add_filter('genesis_blocks_allowed_layout_components', function( $layouts ) {
        return [
            'hbcom_showcase_section',
            'hbcom_showcase_dark_section',
            'hbcom_project_layout',
            'hbcom_clients_layout'
        ];
    });

    Two keys are from type=section and two keys are type=layout.
    When i put this in my theme functions.php the sections will be shown, the layouts not. How can i show the layouts?

    Thx
    Oiver

    May 24, 2021 at 6:14 pm #504099
    AnitaC
    Keymaster

    I think there's going to be an update to this very thing tomorrow or Wednesday. I'll post back once I know for sure.


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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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