Archived topic
Padding for Archive Pages
8 replies · Started by Martin U on July 26, 2019
Hi guys,
I'm using GP 2.3.2. and GPP 1.8.3. Layout is set to "one container".
Here is what I would like to achieve:
A different set of padding for all archive sites, i.e. blog index, category index sites
Blog Index Page https://streetberlin.net/street-photography-blog/
Example of Category Index Page https://streetberlin.net/category/street-photography/
So here is my question: How do I set the the padding all index pages to 40px?
Thank you so much for helping out
Hi there,
The purpose of "One Container" is to remove the padding - it doesn't actually have another purpose. If you remove that setting, you should get your padding back.
Let me know :)
The purpose of “One Container” is to remove the padding
I don't follow - I have set to "One container" and still have way too much padding on the index pages
https://streetberlin.net/street-photography-blog/
I need two different set of paddings
Set 1: For all single posts. This uses right now the setting from the settings coming from Customizing • Layout • Container
Set 2: For all archive pages, i.e. blog index page and category index pages I would like to have a different set of padding - i.e. a lot less padding.
.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header {
padding: 40px 200px 40px 200px;
}
I'm talking about this. I would like to have way to target archive pages only so that I can use a different set of padding for those.
Ah sorry about that - got confused with another feature.
Can you try this CSS?:
.archive.one-container .site-content,
.blog.one-container .site-content {
padding: 40px;
}
Thank you so much, Tom, works like a charme. Have a great weekend!
May I suggest to consider make this a standard feature?
No problem!
Like a feature to set different padding values just for the archives?
Yes exactly, that would be great.
Cool, thanks for the suggestion! :)