• 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

Forcing Full Width Content Stops Widget Area from Showing

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 › Forcing Full Width Content Stops Widget Area from Showing

This topic is: resolved
  • This topic has 1 reply, 1 voice, and was last updated 8 years, 9 months ago by AJD.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 14, 2017 at 9:33 pm #212548
    AJD
    Member

    I have a custom post type "Story Posts" that I am forcing to show full width like this:

    // Force full width layout on Story Posts
    add_filter( 'genesis_site_layout', 'btc_cpt_layout' );
    function btc_cpt_layout() {
        if( 'story-posts' == get_post_type() ) {
            return 'full-width-content';
        }
    }

    I also have a custom widget area that I am hooking to 'genesis_after_content_sidebar_wrap' to show up at the bottom of all the custom post type archives and posts.

    However, the full-width-content filter is causing the custom sidebar not to display. When I comment out the full-width-content filter the widget area shows up, but I have a right sidebar, the default, otherwise the widget area is not shown.

    Here's how I'm adding the sidebar:

    		global $wpdb;
    				
    		if  ('story-posts' == get_query_var("post_type")){
    		
    			add_action('genesis_after_content_sidebar_wrap',    
                    'back_talk_cafe_after_stories_sidebar' );
    			
    		}
                    function back_talk_cafe_after_stories_sidebar() {
    	        dynamic_sidebar( 'after-stories-sidebar' );
    	
                    }

    Any thoughts on this would be appreciated.

    October 14, 2017 at 9:37 pm #212550
    AJD
    Member

    Hmmm... it looks like my post content got deleted.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and 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