Wordpress crop image



  • I can't deal with the hard-core cutting of the wordpress image. Used

    add_image_size( 'service-thumb', 500, 200, true );
    

    and display

    <?php the_post_thumbnail("service-thumb"); ?>
    

    But the image doesn't cut hard, but it's on the same side.

    true (staffing) If the fourth parameter is fixed, the miniature will be reduced and cut to specified dimensions

    It feels like a crop parameter doesn't work. Please help.



  • Should we regenerate the images? https://ru.wordpress.org/plugins/regenerate-thumbnails/


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2