• 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

Center wrap – PROSE

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 › Center wrap – PROSE

This topic is: resolved

Tagged: center, Prose, text, wrap

  • This topic has 6 replies, 2 voices, and was last updated 11 years, 3 months ago by Eva Lim.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 27, 2014 at 3:44 am #87205
    Eva Lim
    Member

    Hi! I like all my website content to be centered on the page.
    I've added a width value to #wrap like below but doesn't seem to work. Help!

    #wrap {
    width: 940x;
    margin: 0 auto;
    }

    I even tried to add !important but still it doesn't work.
    Thanks for any suggestions out there.

    January 27, 2014 at 4:51 pm #87318
    asterbird
    Member

    what about #wrap { text-align: center; }

    If that doesn't work, can you add a link to your page when you reply?

    January 28, 2014 at 5:19 am #87458
    Eva Lim
    Member

    Thanks, your suggestion didn't work but did helped me to troubleshoot.
    Instead of #wrap, I used body.single instead which works. So basically :

    body.single {
    width: 940px;
    margin: 0 auto;
    }

    January 28, 2014 at 5:21 am #87459
    asterbird
    Member

    Oh, glad you found something that worked. 🙂 you can mark this as resolved then

    January 28, 2014 at 5:35 am #87465
    Eva Lim
    Member

    Oh I just found out I need to add more classes to cover all the pages in my website so

    body.home, body.single, body.page, body.archive {
    width: 940px;
    margin: 0 auto;
    }

    I may be missing out on other body classes but this seems to work for now.

    January 28, 2014 at 5:39 am #87468
    asterbird
    Member

    only others I can think of are body.blog for blog pages, body.archive for CPT archives, not sure what search, category, and tag pages are.

    January 28, 2014 at 6:02 am #87469
    Eva Lim
    Member

    Unfortunately I just noticed that using body classes seem to prevent the responsive layout from working well, but maybe this problem belongs in another thread.

  • 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

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