Home › Forums › Support › Change container on full-width posts only This topic has 7 replies, 3 voices, and was last updated 4 years, 1 month ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts February 20, 2019 at 12:31 am #815186 Tobias Hi, I’m searching for a way to change the container width on posts/pages without sidebars. As a result, full-width posts should be narrower and posts with sidebars should stay the same. Hopefully you can give me a hint. GeneratePress 2.2.2GP Premium 1.7.7 February 20, 2019 at 3:25 am #815307 DavidStaff Customer Support Hi there, some CSS like this: body:not(.right-sidebar) #main { max-width: 720px; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ February 20, 2019 at 4:02 am #815342 Tobias Thank you very much, David. This works great! February 20, 2019 at 4:13 am #815359 DavidStaff Customer Support You’re welcome. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ February 21, 2019 at 4:19 am #816389 Will This is great. Is there any way to center the whole thing? February 21, 2019 at 4:26 am #816394 Tobias I centered it with margin-left: auto; margin-right: auto; Hope that helps. February 21, 2019 at 5:12 am #816431 Will Awesome. That did work. Thanks very much. In case anyone wants to see how I applied this, here’s a post with no sidebar and the revised width to 800px. February 21, 2019 at 5:23 am #816445 DavidStaff Customer Support Thanks Tobias – Will you can ignore the other topic reply 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In