• 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

Changing the Stacking Order of Sidebars in Responsive Mode

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 › Changing the Stacking Order of Sidebars in Responsive Mode

This topic is: not resolved

Tagged: responsive design, sidebars, Stacking Order

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 2 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 5, 2013 at 5:22 pm #77299
    JohnP
    Member

    Is there a way to change the stacking order of the primary and secondary sidebars when they move from their left and right positions to their stacked, above and below positions when the screen size is made smaller?

    Just to clarify, in a sidebar-content-sidebar configuration, the sidebar on the right (the primary sidebar by default) gets stacked on top of the secondary sidebar (the one on the left). Is there a way to change this stacking order?

    December 6, 2013 at 11:36 am #77383
    David Chu
    Participant

    Hi,
    Interesting question. I wrote an article related to this. Its purpose was a trick for getting the Primary Sidebar above Content at responsive size. (even though I wouldn't always recommend that from a usability perspective - usually the Content should be king, so to speak!)
    http://davidchu.net/blog/move-sidebar-content-website-wordpress-genesis/

    Your question is complicated, because the Secondary sidebar is not in the same HTML container as Content and Primary. So no easy trick.

    Adapting my code in the article, I moved the Secondary Sidebar above Content and then Primary, but I don't think that's exactly what you were looking for. And this code is for Genesis 2 - it could easily be adapted for Genesis 1.

    media only screen and (max-width: 1023px) {
        .site-inner {display:table;}
        .site-inner .content-sidebar-wrap {display:table-footer-group; float: none;}
        .site-inner .sidebar-secondary {display:table-header-group; float: none;}
    }
    

    (I took off the at-sign before the media line above because bbPress barfs on that)

    A bunch more coding and experimenation would possibly yield what you're describing. Might not be worth that much grief. One reason why I'm not always all that keen on 3 column designs. ๐Ÿ™‚

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    December 7, 2013 at 3:52 am #77513
    JohnP
    Member

    Thank you, Dave - a thorough response! Your "might not be worth that much grief" sold me ๐Ÿ™‚

    December 7, 2013 at 9:50 am #77543
    David Chu
    Participant

    Sounds great, John.
    It's an interesting topic to me, that's why I elaborated a lot.

    The whole "table hack" thing is nice, because it's much easier to do than handling it all with custom PHP programming, or something radical like jQuery. In fact, it doesn't even harm SEO, as in the HTML, content is still first! ๐Ÿ™‚ When I first used that hack, it was somebody sticking their sidebar ads above content - I suggested to them that it might be perceived as cheesy, but they were undeterred, as people often are.

    And yes, sometimes jumping through 20 hoops to do something may not be the best course. ๐Ÿ™‚

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

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