Tagged: x
-
AuthorPosts
-
March 30, 2016 at 7:32 am #858634
Dear X-team,
I am using the recent posts-function to generate a listing of the recent blog posts. The code is
[x_recent_posts type="post" count="10" orientation="vertical" no_image="false" fade="true"]
Some posts have featured images, others do not. The reason is that there are some posts where there simply are no suitable images to go with them. When there are featured images, I want them to be displayed in the recent posts-listing, which works fine. However, when posts do not have a featured image, still a space just as big as the featured image would be is “reserved” for the image and only shows the icon of the post type. This is very undesirable, as you can imagine.
Is there a way to display the featured image only of there actually is one, and otherwise leave it out and make it look the way it would if, in the tag above, I had set
no_image="true"
?Thank you for your help!
March 30, 2016 at 7:33 am #858635This reply has been marked as private.March 30, 2016 at 8:54 am #858766Hi There,
Please try adding the following CSS under Customizer > Custom > Edit Global CSS:
.x-recent-posts .no-post-thumbnail .x-recent-posts-img { display: none; }
Hope it helps 🙂
March 30, 2016 at 9:56 am #858840Perfect! Thank you once again for the quick and very efficient help!
March 30, 2016 at 1:50 pm #859226You are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts