• 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

Parallax Pro – Modify header and body 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 › Parallax Pro – Modify header and body width

This topic is: not resolved

Tagged: css, header, parallax-pro

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 8 months ago by mercurialist.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 24, 2014 at 1:03 pm #128997
    mercurialist
    Member

    I'm using the Parallax Pro theme for my site and would like to make some changes.

    I would like to ensure that the header width aligns with the width of the main content area. At present, the header text stretches far beyond where the body content begins and ends in each direction, at least when viewed on a widescreen desktop monitor.

    How can I make both the body content and header content stretch to a maximum of exactly 800px in width (for large screens)? My main issue is that they're not aligned with one another. Ultimately, I see the header being a little narrower and the main content area a little wider until they're the same width.

    http://www.greenad.am
    October 24, 2014 at 3:53 pm #129010
    marybaum
    Participant

    You sure about that 800px? That's only slightly wider than a tablet in the portrait/vertical orientation. For wide screens, I usually use 1140 or 1280 - but that's not what you asked.

    The simplest way to get all your content to line up is with the wrap class.

    In style.css, there's a rule called .wrap:

    .site-inner,
    .wrap {
    	margin: 0 auto;
    	max-width: 1140px;
    }

    It's the first rule under Site Containers, line 462 or thereabouts, depending what other edits you've made already.

    Change that max-width to whatever you like, and you'll be good to go.

    I also recommend adding this:

    width: 100%;

    to the end of the rule.

    That should help your content not get cropped off if someone visits from a mobile device before you've had a chance to work with your other device widths.

    Cheers!

    Oh. Almost forgot: to get the header narrower than the content, add this rule to the section of style.css that deals with headers - just to keep things organized -

    .site-header .wrap  {
        width: 80%;
    }

    The max-width will still be whatever value you set in the global .wrap class, but the header wrap will be 20% narrower. It will also still be centered, because the margin of 0 auto still applies. Those inherited values are what we mean by cascading style sheets.

    Hope this helps.

    Mary Baum


    Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀

    October 24, 2014 at 3:56 pm #129011
    marybaum
    Participant

    BTW - based on your home page, you write very well.

    Lotta folks on the web need decent writing.

    MB


    Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀

    October 24, 2014 at 6:34 pm #129019
    mercurialist
    Member

    Thanks, Mary, for the compliment.

    Many apologies as it appears you spent lots of time on your reply. Unfortunately, those suggestions aren't helping me do what I'd like to do.

    Let's forget the 800px bit. I just want the width of the header content (title + navigation) to align with the width of the body content (i.e. so that the place where the words begin and end is the same on each side – I want the header content to be flush with the body content on both sides).

    Let's say – and this actually is true – I really like the current width of the body content. I'd like the header content to be the same width. How do I achieve this?

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