[Resolved] how to use different container size for content (no sidebar)

Home Forums Support [Resolved] how to use different container size for content (no sidebar)

Home Forums Support how to use different container size for content (no sidebar)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #836389
    mishal

    Hello there,

    I want to use the different type of container for my blog post, means I want to write my some blog posts in content/sidebar layout and some blog post in content (no sidebar) layout. My question is, How can I use the different container size for both layouts?

    Thank You🙂

    GeneratePress 2.2.2
    GP Premium 1.7.8
    #836488
    David
    Staff
    Customer Support

    Hi there,

    so do you want to change the entire container width when there is no sidebar or just the_content ?

    For example this CSS will reduce the content area of the post with no sidebars:

    .single-post.no-sidebar #main {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
    #836566
    mishal

    Thanks David, It’s working.

    #836728
    David
    Staff
    Customer Support
    #1457249
    Kumar

    Hi David,
    Thanks for your CSS. I had a similar issue.
    Another quick question on the same.. I want to also reduce the width for some of my pages (not all). How can I do that?
    For example, I want to reduce the width for my about & contact pages too (as the text on these looks far too wide), but not on my home page or archive pages.
    How can I go about it?

    #1457263
    Leo
    Staff
    Customer Support

    Any chance you can open a new topic for the question?

    Thanks 🙂

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