Hi! As we’ve already discussed in other support threads, and as it’s stated in the plugin’s description, not all themes are compatible by default with our plugin. There’s more than one possible way to include a featured image, but we can only hook (and thus manipulate) one of them.
In order to fix the issue, we need access to the source code of the theme. Please, send us a copy of your theme (customers AT neliosoftware DOT com) and we’ll look into it. Also, it’d be helpful if you could please share a couple of links to your website: one with a regular featured image (which should work) and one with an external featured image (which, as you’re reporting, shouldn’t).
Thanks!
link
http://sone.ws/481 which is working
http://sone.ws/kan not working when using this plugins
now i am going to send you theme files.
thanks for your help in advance.
Hi Dilshandil,
I’ve been looking at the theme you sent us and it offers one hook to modify the featured image (get_the_image). Add the following function in the functions.php file (if you’re using a child theme, modify the child’s version of that file):
add_filter( 'get_the_image', 'nelio_use_efi_if_available' );
function nelio_use_efi_if_available( $html ) {
if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( get_the_ID() ) ) {
$src = nelioefi_get_thumbnail_src( get_the_ID() );
$title = the_title();
return '<img class="thumbnail" src="'.$src.'" alt="'.$title.'" title="'.$title.'" />';
}
else {
return $html;
}
}
This should do the trick! However, please note this solution may require additional CSS tweaks. Good luck!
hi,
i pasted above code into wp-content/themes/wp-clear321/functions.php but nothing happened.
How to check for child theme ?
pls have a look into http://sone.ws/kan the very first post. the page title is appearing instead of image.
can we fix this ?
thanks.
You’re right. Use get_the_title( get_the_ID() ) instead of the_title(). This should fix the issue.
On the other hand, keep in mind that external featured images are not cropped and scaled by WordPress, so you may need to tweak your CSS rules and/or the HTML that’s being printed to achieve a similar result.
I hope this helps! Please, don’t forget to rate and/or comment on our plugin!
get_the_title() worked.
thanks alot.
Glad to hear! You’re welcome 🙂