Hi! Please, change the following piece of code in content-single.php of your theme:
if( has_post_thumbnail() ):
$img_url = wp_get_attachment_image_src(
get_post_thumbnail_id(), 'single-thumb' );
?>
<img src="<?php echo $img_url[0]; ?>"
alt="<?php the_title_attribute(); ?>"
title="<?php the_title_attribute(); ?>" />
<?php
endif;
With the following piece of code:
if ( has_post_thumbnail() ):
if ( function_exists( 'uses_nelioefi' ) &&
uses_nelioefi( $post->ID ) ) {
echo the_post_thumbnail();
} else {
$img_url = wp_get_attachment_image_src(
get_post_thumbnail_id(), 'single-thumb' );
?>
<img src="<?php echo $img_url[0]; ?>" alt="<?php
the_title_attribute(); ?>" title="<?php the_title_attribute(); ?>" />
<?php }
endif;
And also change in your inc/profitmag-functions.php file of your theme the following fragment:
$image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'slider-beside' );
with this fragment:
if ( function_exists( 'uses_nelioefi' )
&& uses_nelioefi( get_the_ID() ) ) {
$image_url = nelioefi_get_thumbnail_src( get_the_ID() );
} else {
$image_url = wp_get_attachment_image_src(
get_post_thumbnail_id(), 'slider-beside' );
}
Probably you’ll also need to change other parts of your theme where the wp_get_attachment_image_src function appears, but with these two examples you’ll get the idea of doing it.
Best!