• 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

Get Sidebar to be on Left for Blog page

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 › Design Tips and Tricks › Get Sidebar to be on Left for Blog page

This topic is: not resolved

Tagged: left sidebar for blog, move sidebar from right to left

  • This topic has 6 replies, 2 voices, and was last updated 13 years, 5 months ago by stacijansma.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 13, 2013 at 10:51 am #11595
    stacijansma
    Member

    I've moved a few things in the coding - but nothing is getting the sidebar from the right to the left side of this page: http://harrisburgareamoms.com/blog/

    The default settings are left sidebar. Which all pages are switched to that except this page.

    Can anyone tell me how you can do this?

    January 13, 2013 at 11:06 am #11597
    Jon Bellah
    Member

    On the Blog page in WordPress, scroll down and click the layout with the sidebar on the left in the "Layout Settings" box.


    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 13, 2013 at 11:25 am #11598
    stacijansma
    Member

    Jon,

    Thanks for your response - that doesn't work though 🙁 I thought it might be that simple too.

    Any other ideas? I think I need to change the coding just not sure what and when I searched I didn't find my answer.

    January 13, 2013 at 11:37 am #11600
    Jon Bellah
    Member

    Add this to your functions.php file:

    
    add_filter( 'body_class', 'add_blog_class' );
    function add_blog_class( $classes ) {
     if ( is_home())
     $classes[] = 'blog-page';
     return $classes;
    }
    
    

    Then add this to the bottom of your style.css file:

    
    .blog-page .sidebar {
    float: left;
    }
    
    .blog-page #content {
    float: right;
    }
    
    

    However, your #inner div background still draws the line down the page.  So you'll want to invert it, and add:

    .blog-page #inner {
    background:url(images/blogpage-bg.jpg);
    }
    

    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 13, 2013 at 2:37 pm #11634
    stacijansma
    Member

    Jon, Thank you - this is working except - I lost the whiteness of the page: http://harrisburgareamoms.com/blog/

    January 13, 2013 at 4:11 pm #11673
    Jon Bellah
    Member

    Change this:

    .blog-page #inner {
    background-color:#fff;
    }
    

    You'll lose the vertical bar on the sidebar, though. The blogpage-bg.jpg image that I referenced was assuming that you wanted that bar. If so, you have to flip that image horizontally in a image editing software (like Photoshop or Gimp) and save it to your themes images folder.


    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 13, 2013 at 4:23 pm #11675
    stacijansma
    Member

    Okay - I got it - I went with this:

    .blog-page #inner {
    background:url(images/inner-sc.png);
    }

    Apparently this theme doesn't have a blogpage-bg.jpg so I went to the home page that has the white and plugged in that image.

     

    Thanks!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ 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