• 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

Add widget in Blog sidebar

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 › Add widget in Blog sidebar

This topic is: not resolved

Tagged: blog, layout, Sidebar

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 2 months ago by dimitris74.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 26, 2014 at 3:56 am #96695
    dimitris74
    Member

    I am using Parallax Pro and the full width content layout settings. I want my Home page to be in full width but my Blog page to have a sidebar with Search, Recent Posts and Categories widgets. I tried to enable a different layout for my Blog page but it didn't work, I still get full width content and no sidebar. My Blog page is using the Blog template and is also selected as the page for the posts in the Reading settings. How can I add a sidebar to the Blog page when I have a full width layout?

    http://www.quirkify.com/blog/
    March 26, 2014 at 8:24 am #96722
    Davinder Singh Kainth
    Member

    Backup before making changes !

    1. Remove or comment out following code in front-page.php file

    		//* Force full width content layout
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    2. Add following code to functions.php file

    function full_width_layout_single_posts( $opt ) {
    if ( is_home() ) {
        $opt = 'full-width-content'; 
        return $opt;
     
        }  
    }

    3. Change default layout in Genesis setting to 'content - sidebar'


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 28, 2014 at 2:15 am #97084
    mccooles
    Member

    Hi Davinder,

    I am having the same problem as dimitris74. I just want to have the sid-bar when I click on Blog on my nav bar.

    Just so I am clear - your code will enable me to have a side bar on my Blog Page, correct?

    We are not talking Blog Post Pages, correct?

    Thank you.
    Monthida

    March 28, 2014 at 2:30 am #97085
    Davinder Singh Kainth
    Member

    Above code will make homepage full width and all other pages + posts 'content - sidebar'.

    If you want to specifically define different layout for posts, pages and other formats in Genesis theme, then use Genesis Layout Extras plugin - https://wordpress.org/plugins/genesis-layout-extras/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 30, 2014 at 5:54 pm #97546
    dimitris74
    Member

    Thanks Davinder,

    I made the changes but in the end the sidebar didn't blend well with the rest of the site so I decided to leave everything as full width.

    Thanks
    Dimitris

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 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