• kvg

    (@kevingaal2015)


    Hi,

    I came across your plugin, because it gives me some more flexibility on the pages. I put the widget in the sidebar widget area. It is a genesis theme with woocommerce. The settings are “product categories” “show featured image” image size “150 x 150” (tried smaller too).

    When i want to include an image with a size of 166 x 166 within a product categorie it will disappear after pressing save. This does not happen with a picture of 350 x 350 px. So this must be a setting right?

    Could you help me in the right direction?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Because of how the plugin works to intelligently display featured images at the top of term/category archives, those featured images have a minimum size, which is determined by the Medium image size set by your WordPress site. If your medium image size is the standard 300px, then what you’re experiencing is expected behavior. You can upload a larger image which will display nicely at the top of the category, but use the smaller WordPress generated thumbnail size image in the widget.

    If you want to have the product category image available only for the widget and not show on the product category archives (which may be the case if you need a smaller image), you would need to tinker with a filter, which you can add to your theme’s functions.php file or similar. Something like this should help get you started (please practice safe coding, back up your files, etc. etc.):

    
    add_filter( 'displayfeaturedimagegenesis_can_do', 'prefix_prevent_featured_image_categories' );
    function prefix_prevent_featured_image_categories( $cando ) {
    	// replace the taxonomy name as desired
    	if ( is_tax( 'product_cat' ) ) {
    		$cando = false;
    	}
    	return $cando;
    }
    

    Hope that helps!

    Thread Starter kvg

    (@kevingaal2015)

    Hi Robin,

    Thank you for your answer. The think is i have many pictures and only in this size. But your answer helped me though to do this with the regular thumbnail within woocommerce. So thank you for that and have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured image of 166 x 166 px not able to save’ is closed to new replies.