Feature image thumbnails cropping

Posted in: Newspaper
Post count: 5

Hey when i set a featured image the thumbnail crops itself automatically which I would like to stop.

Reading previous articles i have done the following:

In the file td_config.php I ahve set the crop option to false

td_api_thumb::add(‘td_80x60’,
array(
‘name’ => ‘td_80x60’,
‘width’ => 80,
‘height’ => 60,
‘crop’ => false,
‘post_format_icon_size’ => ‘small’,
‘used_on’ => array(
‘Module MX2’, ‘Block 18, 19’, ‘Live search’, ‘tagDiv Image Gallery thumbs’
),
‘no_image_path’ => td_global::$get_template_directory_uri,
)
);

And also int he file td_wp_booster_fucntions.php I have changed the crop variable to false:

* add_image_size for WordPress – register all the thumbs from the thumblist
*/
foreach (td_api_thumb::get_all() as $thumb_array) {
if (td_util::get_option(‘tds_thumb_’ . $thumb_array[‘name’]) != ”) {
add_image_size($thumb_array[‘name’], $thumb_array[‘width’], $thumb_array[‘height’], false);
//add retina thumb (only if it is enabled)
if (td_util::get_option(‘tds_thumb_’ . $thumb_array[‘name’] . ‘_retina’) != ”) {
add_image_size($thumb_array[‘name’] . ‘_retina’, $thumb_array[‘width’]*2, $thumb_array[‘height’]*2, false);
}
}
}

Yet images are still being cropped.

Am I Missing anything here pleasE?

Many thanks

David

Post count: 20688

Hi,

Please check these guides if you would like to modify the theme cropping system
https://forum.tagdiv.com/api-thumbnail-introduction/
Try it like this example
https://www.screencast.com/t/P4S6YAp0HhM

Thanks

Post count: 5

Hi thats what I done as mentioned above but the problem is still happening.

Any ideas?

Post count: 5

Hi Sorry it jsut seemed to be caching dont worry aobut this ticket

Thanks again for your help

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.