Hello Vipasha,
The Default featured image is the strawberry right?
I see it only in the overview but not on individual pages.
As far as I see there is no difference per device.
I’ve tested this on a clean installation with leeway and it works on all pages.
It looks like the recipe part is quite custom.
What do you use for that part?
Hello! janw.oostendorp,
Yes you right default featured image is the strawberry.
For recipe I am using MealPlannerPro Recipe Plugin.
I started using this plugin right now, even most of the recipe still no have this plugin feature. I am still working on it to make recipe fit on this plugin.
This problem is not with this plugin as its from previously from when I started using your plugin Default featured image. I thought this MealPlannerPro Recipe Plugin solve my problem. So, I start using it and it does not.
Also other featured images are going well, only default featured image is giving me this problem of not showing in right size. Even I also try to changing sizes of image but its not resolve.
Thanks
Are you using any other plugins?
Did you tweak the thema at all?
Is there a development website where you can turn the recipe plugin off?
Hello janw.oostendorp,
Yes, their are many plugins I am using but for posting recipe and default featured image only these 2 I using i.e., you Default featured image plugin and MealPlannerPro Recipe Plugin.
No, I don’t touch the coding of theme.
No, its not a development website.
Thanks,
Hello Vipasha,
Without a development website it’s nearly impossible to find this.
I recommend you set up one. Also for general purpose development.
After that I recommend you disable all plugins except DFI.
If that doesn’t help I recommend you switch to a default theme.
This is to test if it does work.
That way you could at least pinpoint which plugins are clashing.
It’s probably a matter of clashing plugins.
Okay… let me try all and update you soon.
Hello janw.oostendorp,
First of all sorry late reply, but I am quite busy in some other stuffs.
I have tried everything what you say, but its not working. I change theme to basic and other as well, but nothing happen. Also non of the plugin clashing in between, as deactivating all plugin except DFI does not work.
I am still on a same position.
Please help!!!
Thanks,
Vipasha
Hello Vipasha,
Can you try this code:
function dfi_add_class($html, $post_id, $default_thumbnail_id, $size, $attr) {
// add a class to the existing class list
$attr['class'] .= ' wp-post-image';
return wp_get_attachment_image( $default_thumbnail_id, $size, false, $attr );
}
add_filter( 'dfi_thumbnail_html', 'dfi_add_class', 10, 5 );
Post it in the theme’s functions.php
Hello janw.oostendorp,
I will sure try this code and update you.
Thanks
Sorry janw.oostendorp for late reply. but I was busy and did not get to back to you. You code worked and now images are properly aliened on mobile mode.