Home>Support>Limit Container Width to 750px for Blog Posts Only

Limit Container Width to 750px for Blog Posts Only

By Tara, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I’d like the reply section, blockquotes, social media widget at the bottom, featured image etc. all to be limited to 750px, but just for single blog posts.

Is there an easy way to do this?

Thanks

URL: http://www.tarahanrahan.com/cravings-binging-emotional-eating/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi Tara

    Give this a try under Appearance > Custom CSS:

    article.post .entry-categories, 
    article.post .share-buttons, 
    #single-comments-wrapper {
    max-width: 750px;
    margin: 0 auto;
    }
    

    If you don’t want post categories to be included then delete the first selector (first line), including the comma. If you don’t want the social icons to be included then delete the second line including the comma.

  2. 10 years, 9 months ago Tara

    It seems to have worked on the comments box and social media, but the featured image, paragraph text, and horizontal line have stayed the same. I’ll leave the CSS active so you can check the link above to see how it’s worked.

    Thanks

  3. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Sorry I’m not entirely following your question. Do you want to make the entire content area 750px? If so remove my previous CSS and use:

    .single #primary { margin: 0 auto; max-width: 760px; }
    
  4. 10 years, 9 months ago Tara

    Yes, that’s what I wanted! Thank you

  5. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad that helped.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More