[Resolved] Can you adjust single post content width separate from front of blog?

Home Forums Support [Resolved] Can you adjust single post content width separate from front of blog?

Home Forums Support Can you adjust single post content width separate from front of blog?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #529787
    paulscottanderson

    Hello,

    I am just wondering if there is a way to adjust (lessen) the content width on single posts (no sidebars) but keep the wider width of the container on the front? Thanks!

    #530131
    Leo
    Staff
    Customer Support

    Hi there,

    This CSS should do:

    body.single .site.grid-container {
        max-width: 800px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #530499
    paulscottanderson

    That worked, thanks!

    #531217
    Leo
    Staff
    Customer Support

    No problem!

    #533279
    paulscottanderson

    Just one other question, can I do that for single pages as well? Thanks!

    #533917
    Leo
    Staff
    Customer Support

    Like static pages?

    If so modify the CSS to this:

    body.single .site.grid-container,
    body.page .site.grid-container {
        max-width: 800px;
    }
    #534207
    paulscottanderson

    Yes that’s it, thanks again!

    #534280
    Leo
    Staff
    Customer Support

    No problem 🙂

    #743584
    Rolf

    Is you recommendation above doing this with simple css plugin still valid? would you still recommend using the plugin?
    thanks!

    #743597
    David
    Staff
    Customer Support

    Hi there,

    the Simple CSS plugin is developed by our very own Tom Usborne. So yes highly recommend it.
    Of course the code will still work if applied in a child theme style sheet or the Customizer > Additional CSS

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.