Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #489970

    HI,

    This issue has been raised numerous times and none of the responses so far (that I have found) resolve it.

    Simply – if a post has no featured image don’t replace it with a boxed icon – shjow nothing instead!

    This applies to all content elements – here’s an example using the Blog Posts element:

    Before: Currently default pencil icon shown with post excerpts that have no featured image:

    After: Posts with no featured images show NOTHING in place of the thumbnail.

    Hope that clarifies – important to note that if there IS a featured image it should show so there needs to be some logic here, ideally a snippet for function.php.

    Thanks.

    • This topic was modified 9 years, 4 months ago by M1000000.
    #490245

    Hey M1000000!

    Please feel free to request such feature here – https://kriesi.at/support/enfold-feature-requests/.
    Also, please post the link to your page so we can provide you custom CSS solution

    Regards,
    Yigit

    #490287

    Hi Yigit,

    I do get that it’s not so simple keeping layouts tight when some entires have an element and others don’t (though I can’t seem to find an option to not show any featured images in news summary elemnts either).

    Link to test site in private section below – guess best option here would be to somehow keep an element with the appropriate height (believe this is set by the thumbnail size of any existing post with a featured image) – but have it as transparent space – ie no icon, no background & no border).

    Many Thanks.

    #490504

    Thinking about it thwe best option may be to fallback to a default image – which could be a transparent png that would provide standard height – rather than a additional code.

    #491243

    Hi,

    Like you suggested a transparent image might be the easiest option if you don’t have a featured image, are you going to go for that option? Please let us know if we can help you out any further.

    Thanks,
    Rikard

    #491880

    Hi Rikard,

    Back again I’m afraid. So the idea of using a transparent png as the default featured image doesn’t work – that ‘orrible icon is simply obscured by the featured image thumbnail rather than replaced by it so it shows through the transparent background.

    Now seeking advice on another approach – surely can’t be that hard – when there is no featured image on a post don’t show anything in its place.

    Hoping you can come up with something here. Thanks.

    #491914

    Hey!

    Everything is possible, but that would need a lot of work to be done.

    You can contact one of our Customization Contractors, who will help you out with the process.
    http://kriesi.at/contact/customization

    Let us know if we could do anything else, regarding our theme

    Regards,
    Basilis

    #491921

    Thanks Basilis – already been waiting a week for a response to my last customisation request and out of time so looking for a kludge.

    How about replacing the icon with a 50px x 50px image – could that be acheived with some css?

    For a proper fix main problem seems to me that there is no css identifier (correct me if I’m wrong as this is all it needs!) for the fallback icon (eg <div class=”blog-meta icon-fallback”>) that allows you to selectively style or hide only those elements that have no featured image.

    Thanks.

    #492809

    Hi!

    Please add following code to Quick CSS

    span.fallback-post-type-icon:before {
        display: none;
    }
    span.fallback-post-type-icon {
        background-image: url(https://www.squashedsoftware.com/images/icon-easy-123.jpg)!important;
        background-repeat: no-repeat!important;
        background-position: 50% 50%!important;
        background-size: contain!important;
    }

    Best regards,
    Yigit

    #492914

    Thanks Yigit – that certainly does the job for the Blog Posts element with Grid option selected!

    I will see if I can adapt this for the other options (Single Author, Small Preview Pic etc).

    Will also add suggestion to feature requests that alternatives to icons (it’s personal, I just hate ’em) are provided as fallback when no featured image is present.

    Again, many thanks for your efforts!

    #492915

    Hey!

    You are welcome. Hope it works out for you :)
    Let us know if you have any other questions or issues

    Regards,
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Remove boxed icon when posts have no featured image’ is closed to new replies.