Archived topic
Different container width around the site
7 replies · Started by Tomáš on December 17, 2019
Hello,
when I change the container width for a blog post, it automatically changes the container width on the entire website.
How can I adjust the "blog post container width" separately?
Thank you
Thanks, David.
I was able to create a separate blog container with different width, however, the container now doesn´t have padding.
How can I add padding to a newly created container?
I browsed a few pages and am seeing paddings in all of them.
Can you guide me to the page in question?
Make sure this option is not used as it removes the padding:
https://docs.generatepress.com/article/page-builder-container/
I created an element using the instructions from the link above.
But once I discovered it has no padding, I deleted that element.
Leo, when I tried to create new element for separate content width for blog, there are just two options displayed:
1. Full width
2. Contained(NO PADDING)
I just need to know if there is any way to create padding into the newly created element using contained layout.
when I tried to create new element for separate content width for blog, there are just two options displayed
There should also be an option called Default which means the global padding from the customizer option would apply:
https://docs.generatepress.com/article/layout-element-overview/#content-1
Or are you wanting to use different padding separate from the global padding? If so we will need to use CSS.
Yeah, there is the default option, but with the default option, I can´t change the container width separately.
Here is what I want, in specifics:
- Container width in general for my site: 1200px
- Container width for my post articles: 900px
I can create a separate container for posts with 900px, however, when I do that, there is no padding.
So, is there any option?
Hi there,
You should be able to set the Content Width no matter what the template setting.
can you provide a Screenshot of the Layout Element Content Tab ?