• I’m trying to make my homepage look somewhat like http://www.hammerandtusk.com/newsletter/page/1. This means adding margins on the left and right, and modifying the width of the center divider or margin between the two columns of content. My site is someweekendreading.com.

    1. What tweaks do I have to make in the following CSS to keep the header full width and just apply the left and right padding changes to the body of the page?

    I’ve used:
    ‘.contentclass {
padding-left: 20px;}
.contentclass {
padding-right: 20px;}’
    It works but obviously adds padding to the entire vertical of the page.

    2. What is the CSS to add padding (increase the separation) in the middle between the two columns?

    Thank you very much for the assistance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Try adding this CSS to Appearance> Theme Options> Custom CSS and let me know if this is what you’re looking for:

    body.home #content .main {
        max-width: 940px;
        margin-right: auto;
        margin-left: auto;
    }
    
    .home_blog .kad_blog_item {
        padding: 0 30px;
    }

    Let me know if this works for you.

    Thanks,
    Kevin

    1.

    @media (min-width: 992px){
    #content {
        width: 800px;
    }
    }

    2. How much are you wanting to add? The space there is already similar to your example link?

    Kadence Themes

    Thread Starter Webtagion

    (@webtagion)

    Awesome support. Thank you.

    1. The first CSS suggestion worked perfectly.

    2. I can live with the current spacing but was curious about what the CSS is so I can play around with the spacing.

    The CSS I posted:

    .home_blog .kad_blog_item {
        padding: 0 30px;
    }

    should allow you to adjust the padding of your home blog items. You can change the values if you want to see different padding settings.

    -Kevin

    Thread Starter Webtagion

    (@webtagion)

    Works great thank you.

    What would be the change to tweak the code for my archives page, which is someweekendreading.com/archive?

    Thread Starter Webtagion

    (@webtagion)

    Post Script: I’ve decided to test two different home page layouts:

    1. One with the two columns as described above.

    2. The other would only have a single column to display the entirety of the current issue. In this case, the issue is how to limit “Latest Post Displays” to one post rather than two. I’ve created a separate question for this issue because I think others may encounter the same issue.

    Thread Starter Webtagion

    (@webtagion)

    Hey,
    You would do this differently. You would need to go to settings > reading. And there set the front page as your latest post page.

    Then in your theme options > home layout you would move “latest posts” to disabled.

    And move “page content” to enabled. Then your posts would show as a single column layout.

    Ben
    Kadence Themes

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Padding: Modifying Page Width While Keeping Full-Width Header’ is closed to new replies.