I just noticed that course images are not optimized, it should be loading appropriate thumbnail image instead of loading the image in original size this is reflecting on page load time. with server optimisation and caching we were able to reduce the load time but these images reduced the load time and we only have 6 courses now the case would be worse in case we need to display 20 courses
http://prntscr.com/jdhmsi
provide some time to check this .
Hi,
You want me to give an appropriate time for you to check with me? or you are just informing?
Unable to replicate this on our demos :
http://prntscr.com/je1nc0
Olease provide site url in private reply to check this .
This reply has been marked as private.
Hi,
Please paste the following code in wp-admin>plugin>editor>Wplms customizer plugin
add_filter('vibe_thumb_featured_image','custom_featured_image');
function custom_featured_image(){
global $post;
return featured_component($post->ID,'small');
}
Thanks, but it should be cropping the image to the dimension instead of resizing it . with various instructors uploading the courses its better apply crop they cannot deliver the same dimension all time.
Hi,
Will you please elaborate what you exactly want ?
I am unable to understand what you want.
So please share some screenshot for better assistance.
http://prntscr.com/jetnb0
The images is resized but not cropped and hence it results in a unbalanced image placement.
Hi,
The thing you want needs custom code. And this is not comes under theme support.
You can solve this issue by a light way.
Add the given below css in wp-admin>appearance>customize>custom css
.block.courseitem.course4 .block_media img{height:100px;object-fit:cover;}
Adjust height according to requirement.