• 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

Change site width: .content & .sidebar-primary

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 › Change site width: .content & .sidebar-primary

This topic is: resolved

Tagged: content width, custom layout, sidebar width

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by meltdown.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 25, 2018 at 1:22 am #216967
    meltdown
    Member

    To increase the site content width and decrease the sidebar width I've added the following to my Additional CSS:

    .content {
    background-color: #E7DDFF;
    	padding: 20px 30px 5px;
    }
    
    .content {
    	float: right;
    	width: 850px;
    }
    
    .sidebar-primary {
    	float: right;
    	width: 260px;
    }

    Amazingly it did as I had hoped. However, I now see that when viewing the site on smaller @media only screens the site content is too wide, forcing the user to scroll left to right.

    Question: Is there a better way to alter my content and sidebar widths? Or something I could add to the @media only screens section on the stylesheet?

    Thank you for your suggestions! Tim

    https://missingmadamz.com/
    February 25, 2018 at 2:21 am #216970
    Brad Dalton
    Participant

    Try this tutorial, its old but i think it still works.

    Another option is to use CSS grid.


    Tutorials for StudioPress Themes.

    February 26, 2018 at 12:39 am #217008
    meltdown
    Member

    Thank you! I'll give it a look 🙂

    February 28, 2018 at 12:58 am #217108
    meltdown
    Member

    I see that if I apply the desired changes to .site-inner, .wrap, .content and .sidebar-primary in my style.css, then the mobile version of the site retains its integrity, meaning that the content remains visible within the confines of the mobile screen, as desired.

    However, this does not work if I copy and paste the changes to my Additional CSS Customizer. Are the changes still protected from being over-written on a theme update?

    Thanks.

    February 28, 2018 at 1:25 am #217109
    meltdown
    Member

    And one more thing, if I may: I would like to change the background color of the .content area, and give it a little wiggle room. This works if I add it to Additional CSS Customizer:

    background-color: #E7DDFF;
    	padding: 20px 30px 5px;

    But the padding upsets the page layout (if I use no padding, the content is butted up against the edge of the content area).

    If I attempt to add the code to .content in the stylesheet, it seems to have no effect. How can I apply this? Thanks again.

    March 2, 2018 at 1:16 am #217205
    meltdown
    Member

    OK, this was as simple as me not clearing the cache. A neat trick by the support people:

    Clearing your browser cache and any caching or minification plugins can help. Incrementing the version number in your child theme's functions.php after making changes to your stylesheet is also worthwhile:

    define( 'CHILD_THEME_VERSION', '3.2.4' );
    Changing the version there will append a new cache-busting string to the stylesheet URL and cause the browser to fetch a fresh copy.

    Happily resolved 🙂

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change site width: .content & .sidebar-primary’ is closed to new 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