Archived topic
How could I build related post section like this?
37 replies · Started by kiant123 on August 31, 2021
Great. I'm happy with this one.Thank you.
Glad to hear that !
Hi again,
Recently Elvin has been helping me to style my WPshotposts grids on my homepage and category pages but now see that it is also affecting these related posts sections made in WPshowposts. You can see that there is box shadow and a border when there wasn't any before.
Is there a way to make these related posts ignore the formatting?
Hi there,
so this is the current CSS you're using:
section.wp-show-posts article .wp-show-posts-inner {
overflow: hidden;
border-radius: 5px;
box-shadow: 0 2px 7px rgb(145 145 145 / 35%);
}
Try changing that to:
:not(.wpsp-related-posts1) section.wp-show-posts article .wp-show-posts-inner {
overflow: hidden;
border-radius: 5px;
box-shadow: 0 2px 7px rgb(145 145 145 / 35%);
}
Hi, I tried changing up the code but it didn't appear to make a difference.
OK, keep your original CSS and add this:
.wpsp-related-posts1 .wp-show-posts article .wp-show-posts-inner {
box-shadow: unset;
}
.wpsp-related-posts1 .wp-show-posts article .wp-show-posts-inner * {
padding: 0 !important;
}
Great that worked! Thank you.
Glad to hear that!