Archived topic
Single Post Layout No Sidebar: How to Reduce the Width?
5 replies · Started by Jericho on August 9, 2018
Hi GP Team,
I set my site Container Width at 960px then I set my Single Post Sidebar Layout to no sidebars.
My problem is that the single post page is very wide. How can I reduce the width for the single post to 730px and center it?
Thank you!
Hi there,
Try this CSS:
body.no-sidebar .site.grid-container {
max-width: 730px;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know :)
Hi Leo,
It worked! Can you please also include the CSS code for regular pages?
Thanks very much!
So where do you Not want that specific width?
Hi Leo,
What I mean is that I also set the Sidebar Layout for regular pages (About, Contact, Privacy page) to no sidebar. I want the same width for regular pages and single post (730px).
The CSS code you gave is for the single post only. That's why I'm asking if you can also provide the CSS code for regular pages to make the width 730px also.
Thanks!