• 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

Single Post Container 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 › Single Post Container Width

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by manavecplan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 20, 2016 at 1:27 pm #197919
    manavecplan
    Member

    Hey,

    I'm having trouble centering the single post content over at https://pitchdeck.io/blog/test-9/.

    The only way it seems to get centered is by using the .site-inner selector but that affects the homepage too and setting that to a width of 960px.

    What would be the appropriate selector for just single post content?

    https://pitchdeck.io/blog/test-9/
    December 20, 2016 at 2:27 pm #197923
    Victor Font
    Moderator

    Get rid of the left and right margin of 100px. Instead, use margin: 0 auto;. This centers things.

    You can also use a page-id or post-id as a qualifier for site-inner. This allows you to change site-inner css for a single entity. You would create a css block for .postid-85 .site-inner. You will find the post/page id listed in the classes for the body tag.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 20, 2016 at 3:18 pm #197926
    manavecplan
    Member

    Perfect!

    Removing the margins sorted it right out...

    Thanks a ton Victor! 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Single Post Container Width’ 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