Tagged: no featured image
-
AuthorPosts
-
August 19, 2015 at 12:08 pm #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, 3 months ago by M1000000.
August 19, 2015 at 5:18 pm #490245Hey 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 solutionRegards,
YigitAugust 19, 2015 at 6:18 pm #490287Hi 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.
August 20, 2015 at 2:12 am #490504Thinking 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.
August 21, 2015 at 10:54 am #491243Hi,
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,
RikardAugust 23, 2015 at 6:33 pm #491880Hi 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.
August 23, 2015 at 10:14 pm #491914Hey!
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/customizationLet us know if we could do anything else, regarding our theme
Regards,
BasilisAugust 23, 2015 at 10:29 pm #491921Thanks 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.
August 25, 2015 at 11:36 am #492809Hi!
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,
YigitAugust 25, 2015 at 1:37 pm #492914Thanks 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!
August 25, 2015 at 1:46 pm #492915 -
AuthorPosts
- The topic ‘Remove boxed icon when posts have no featured image’ is closed to new replies.