Archived topic
Category page white boxes
5 replies · Started by Conor on September 5, 2019
Hi,
When I give a post a category, it shows up on that categories page perfectly. However, my issue is that the top part of the category pages, where I have the category title and the category description, is not inside of a white box like the rest of the elements on my site. How can I fix this?
Hi there,
Give this CSS a shot:
.separate-containers.category .page-header {
padding: 40px 40px 40px 28px;
background-color: #ffffff;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Thank you
No problem :)
Hi Leo,
I'm just revisiting this thread for two reasons.
1) I'm wondering how to do the same thing for the tags pages and the author profile pages
2) I'm wondering how to get the line shadow that I have on my other white container boxes onto the category, tags, and profile page.
All the best, Thanks so much for everything,
C
Hi there,
1. Use this CSS instead to target all archives:
.separate-containers.archive .page-header {
padding: 40px 40px 40px 28px;
background-color: #ffffff;
}
2. Update your box-shadow CSS to include the page-header class this is being used to add that content:
.inside-article,
.sidebar .widget,
.comments-area,
.page-header {
border: 1px solid rgba(232, 234, 237, 1);
box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}