Tagged: x
-
AuthorPosts
-
July 28, 2016 at 6:06 pm #1107819
coryyeakelParticipantHey guys,
So I’ve looked through dozens of threads but can’t seem to find an answer to this. I’m trying to remove the padding around the featured image in the Recent Posts shortcode. I’ve attached 2 images and explained below to show you what I’m trying to achieve.
Image 1 [Current Recent Posts Layout] is how the posts currently look. Image 2 [Blog Post Example] is how I want them to look, with the image having no padding around it.
The title and the rest is fine, I’m happy with that, I’m just trying to get rid of the padding around the image.
Please let me know what I can add to get this. Thanks!
July 28, 2016 at 6:07 pm #1107823
coryyeakelParticipantThis reply has been marked as private.July 28, 2016 at 11:21 pm #1108246
Prasant RaiModeratorHello Cory,
Thanks for writing in!
You can add this under Custom > CSS in the Customizer:
.x-recent-posts a { padding: 0 !important; }Thanks.
July 29, 2016 at 4:04 pm #1109395
coryyeakelParticipantHey Prasant,
Thanks for the code. This works to remove the padding around the image, but at the same time it also removes the padding around the title and date (which I don’t want). Is there a way to isolate just the image in the recent posts shortcode so that I can make customizations to that specifically?
Thanks!
July 29, 2016 at 4:32 pm #1109418
coryyeakelParticipantActually – I figured out a work-around that I’m happy with! Thanks! But I’m still curious for the future…is it possible to isolate just the image as I noted in the reply above?
July 29, 2016 at 8:39 pm #1109690
FriechModeratorHi There,
You can adjust the padding around the title in conjunction with the code given above.
body .x-recent-posts .x-recent-posts-content { padding-left: 20px; padding-right: 20px; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1107819 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
