• Resolved DamirCalusic

    (@webkreativ)


    Hi,

    When I try to crop images I cannot choose a size for the crop. The CropList is empty as you can see on the printscreen https://imgur.com/a/MP4MQ1V

    I have defined sizes in the functions file like add_image_size('cover-middle', 1900, 519, true);.

    Do you maybe know why the cropsizes list is empty?

    The wesbite is on latest WordPress using PHP-7.3.14.

    • This topic was modified 4 years, 9 months ago by DamirCalusic.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    You need to do that after Theme setup. Following code should work (min PHP 7)

    
    add_action('after_setup_theme', function() {
        //this will be executed after the theme is setup
        add_image_size('cover-middle', 1900, 519, true);
    });
    

    Hi this works for me. Had same issue as OP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Crop sizes not available’ is closed to new replies.