Thumbnail Images are not cropped (Scaled with CSS) – How to crop them?

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved
Viewing 3 reply threads
  • Author
    Posts
    • #14106

      Cihankara
      Member

      Hi;

      I like Sparkle theme, but the only problem is high weight of images on page load speed. Browsers download full-size image, css resize them. Even on desktop i wait about 5-10 sec for loading page. In mobile, it takes 10-20 secs.

      You can suggest : use lazy load images, cache etc. I tried, some improvements happen. But i want to get rid of loading full size image thumbnail.

      How can i solve it?

      • This topic was modified 4 y, 6 mo by  Cihankara.
      • This topic was modified 4 y, 6 mo by  Cihankara.
    • #14108

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #14112

      Cihankara
      Member

      Hi, when i add this code into custom-functions.php website goes to offline. something wrong with this code?

    • #14113

      Cihankara
      Member

      ok, this code resolved my problem thank you!

      add_filter( 'post_thumbnail_size', 'filter_post_thumbnail_size_jan132016');
      function filter_post_thumbnail_size_jan132016( $size ){
      	if( !in_the_loop() )
      		$size = 'medium';
      	return $size;
      }
      • This reply was modified 4 y, 6 mo by  Cihankara.
      • This reply was modified 4 y, 6 mo by  Cihankara.
Viewing 3 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2021 by wpthms.com. All Rights Reserved.