• 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

How to create padding around a post?

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 › How to create padding around a post?

This topic is: not resolved

Tagged: padding, post, post design

  • This topic has 5 replies, 2 voices, and was last updated 7 years, 6 months ago by Davinder Singh Kainth.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 5, 2016 at 7:20 am #180696
    brett924
    Member

    I like this Minimal Pro theme, but I don't like how the blog posts take up the full width of the post area when you read it.

    Is there a way to increase the padding on either side of the post to make it a little less appealing.

    It's okay on a small screen because of the responsiveness, but on a larger screen, the text is spread out across the whole screen and it's not very visually appealing at all.

    Where in the CSS would I go?

    http://www.simplyinthesuburbs.com/what-is-intentional-living/
    March 5, 2016 at 8:48 am #180700
    Davinder Singh Kainth
    Member

    1. In style.css file change...

    .full-width-content .content {
        width: 100%;
    }

    to...

    .full-width-content .content {
        width: 100%;
        padding: 0 20%;
    }

    2. Then add following in media queries to disable above added padding value

    .full-width-content .content {
        padding: 0;
    }

    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 10, 2016 at 11:53 am #181129
    brett924
    Member

    Thank you! I'm just now able to get back into this.

    Where in the media queries does that little snippet go?

    Anywhere?

    And what does this do?

    (the snippet above was perfect - looks so much better now!)

    March 10, 2016 at 1:36 pm #181146
    Davinder Singh Kainth
    Member

    Add this

    .full-width-content .content {
        padding: 0;
    }

    Below
    @media only screen and (max-width: 768px) {

    It will remove extra space / padding for tablet and mobile users.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 10, 2016 at 3:55 pm #181165
    brett924
    Member

    Perfect. Thanks.

    So these are the different screen sizes. The purpose is to find the first tablet size that doesn't need to be padded and decrease it back to a full screen width?

    March 13, 2016 at 9:20 am #181337
    Davinder Singh Kainth
    Member

    Step 1 adds extra space on either side.
    Step 2 removes that space for tablet and mobile users.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

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