Space between post at category pages and more
-
Hi. When I do a search inside my web looks like this https://letrasypoesia.com/?s=mar (a normal distance between results), but at category pages the distane is bigger like here https://letrasypoesia.com/category/autores/enrique-morte-espana/. I need at the category page the same distance I have in the search results page.
In the other hand, in my search results page, when the results are entries dont show featured image, thats good. But when the results are page shows a featured image like here https://letrasypoesia.com/?s=mar. I need it doesnt show images at all at the search results.
I hope there is a solution. Thanks.
The blog I need help with is: (visible only to logged in users)
-
Hi there, you have quite a bit of custom CSS, so I’d recommend being mindful about changing this, but here is the section that’s making a lot of space between posts:
/**
* Site-main children wrappers
* – Add double vertical margins here for clearer heirarchy
*/
.site-main > * {
margin-top: calc(3 * 32px);
margin-bottom: calc(3 * 32px);
}You could make that 2 * 32px if you wanted to, or some other number as you like. That should affect every list of posts.
If you’ve already done something else to the margins in your custom CSS you might try just replacing it with that.
-
That works for category pages and search results. Thank you. Just one thing more. I just realized that in the tags pages, like this one https://letrasypoesia.com/tag/poesia/ that doesnt work. Can you help me with some css?
-
Sorry, my reply was incomplete, maybe that code you gave to me works for tag pages but I need that looks like the category page, in that way I need to hide the excerpt at the tag pages. Thats the code I need.
-
I was able to fix it. I’m not an expert in CSS but with the logic I could do it. Thanks for your help.
-
- The topic ‘Space between post at category pages and more’ is closed to new replies.