Archived topic
Changing Page Width For Blogs Posts Page
5 replies · Started by Oisin on March 24, 2020
Hi there,
Wondering how to change the container width for a single page. Because it's a blog posts page I'm little wary about setting up an element as I'm not sure I'll be able to replicate the page correctly.
Is there a way to target it with custom CSS?
Hi there,
i am not sure i understand, whats your concern with using a Layout Element ?
https://docs.generatepress.com/article/layout-element-overview/
Hi David,
Cheers for your help with the other item.
I just it would be easier to target the page with CSS rather than learn how to rebuild a blog post listing page using the layout element. Maybe it's easier to rebuild a listing page than I think?
Thanks,
Oisín.
If I understand this correctly, you are just trying to change the container width for the posts page?
The Layout element is the way to go as David pointed out.
You just need to create a layout element and specify the Content Width:
https://docs.generatepress.com/article/layout-element-overview/#content-1
Then use Blog as display rules. No need to rebuild the listing page at all.
Ah ok, thanks Leo. I didn't realize it would be that simple. I'll try it out now.
Thanks,
Oisín.
No problem :)