Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #858634

    jensfischer
    Participant

    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!

    #858635

    jensfischer
    Participant
    This reply has been marked as private.
    #858766

    Thai
    Moderator

    Hi 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 🙂

    #858840

    jensfischer
    Participant

    Perfect! Thank you once again for the quick and very efficient help!

    #859226

    Rupok
    Member

    You 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!