Default image for Widget Circle Icon
Hai. I’m using the premium version of the Vantage theme which works very well.
One question at the moment:
When displaying an archive list in Circle Icon view, the icon is filled with the featured image (thumbnail) defined for the post.
Would it be possible to define somewhere a default image for those posts that do not have such an image?
It would be even better when I could define a different default image per category.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
5Hi DeBAAT
Thanks for your support.
I’m afraid this isn’t possible within Vantage. I haven’t ever used a theme that offers this, but that doesn’t mean it’s not possible. You could perhaps look towards a plugin for this task:
https://wordpress.org/plugins/search.php?q=default+featured+image
Hai Andrew,
Thanks for this quick reply.
However, I think I wasn’t clear on what I meant.
So I took the liberty to add this functionality myself.
Do you have a means for me to send you some files?
My solution is based on the following snippit replacing line 15 of file ‘loops/loop-circleicon.php’:
$image = wp_get_attachment_image_src( get_post_thumbnail_id() ); // Added default_icon_image by DeBAAT if (empty($image[0])) { $icon_image = siteorigin_setting( 'blog_default_icon_image' ); if ($icon_image) { $image = wp_get_attachment_image_src( $icon_image ); } }The other code is only meant to support the (premium) setting for ‘blog_default_icon_image’ .
So maybe you can implement it yourself in the next release?
Super, really glad to see you made progress here. Sure, send away: [email protected]
Did you receive the extensions I send?
Hope to see them in the next release ;-)
Thanks again for your effort. I’ll be sure to pass it onto the guys.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.