Home>Support>Default image for Widget Circle Icon

Default image for Widget Circle Icon

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi 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

  2. 10 years, 5 months ago DeBAAT

    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?

  3. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Super, really glad to see you made progress here. Sure, send away: [email protected]

  4. 10 years, 5 months ago DeBAAT

    Did you receive the extensions I send?
    Hope to see them in the next release ;-)

  5. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More