• 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

Need help with Genesis Sample – adjust column and sidebar width

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 › Need help with Genesis Sample – adjust column and sidebar width

This topic is: not resolved

Tagged: adjust content and sidebar, genesis sample

  • This topic has 1 reply, 2 voices, and was last updated 5 years ago by Sridhar Katakam.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 6, 2018 at 11:24 pm #217406
    tanhw
    Member

    Hi all

    I'm trying to customize the Genesis Sample theme.

    Please see the attached screenshots.

    The default for the theme is as follows:
    - "content" container is 880px.
    - "sidebar-primary" container is 360px.

    I wanted to fit both the content and sidebar containers into a "site-inner" of 1020px, but with:
    - "content" container reduced to 680px.
    - "sidebar-primary" container widened to 300px.
    - There's some padding I believe of 40px between the two so I thought 680 + 40 + 300 = 1020 px and it's ok.

    I applied the following "Additional CSS" to the theme's customization.

    My laptop version looks fine (Screenshot1.jpg).
    However, on my iPhone 7, I cannot (for the life of me) understand why the sidebar is skewed and aligned to the right. How do I center that sidebar and keep it at 300px in the phone? See Screenshot2.jpg.

    Thanks - any help is greatly appreciated as I've struggle with this for days on end. Even tried to use Page Builders like Beaver Builder but my preference is really to use the stock, default Genesis theme and edit the CSS.

    P.S. The screenshots are here:
    http://www.project-skills.com/wp-content/uploads/2018/03/Screenshot2.jpg
    http://www.project-skills.com/wp-content/uploads/2018/03/Screenshot1.jpg

    http://www.project-skills.com/wp-content/uploads/2018/03/Screenshot2.jpg
    March 7, 2018 at 3:32 am #217414
    Sridhar Katakam
    Participant

    Try adding this in your custom CSS:

    @media only screen and (min-width: 1024px) {
    	.content {
    		width: 680px;
    	}
    
    	.sidebar-primary {
    		width: 300px;
    	}
    
    	.site-inner {
    		max-width: none;
    	}
    
    	.content-sidebar-wrap {
    		display: flex;
    		justify-content: center;
    	}
    
    	.content-sidebar .content,
    	.sidebar-primary {
    		float: none;
    	}
    
    	.sidebar-primary {
    		margin-left: 40px;
    	}
    }

    Genesis Tutorials | Follow me on Twitter

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

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