• Resolved Drachsi

    (@drachsi)


    Would it be possible to control the max. and min. dimensions visitors upload to a non Woocommerce local Directory?

    Regards
    Pete

    • This topic was modified 4 years ago by Drachsi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @drachsi

    Yes, (for now) you just need add some code to let the plugin know what images to resize by following this guide: https://docs.sirplugin.com/faqs#can-i-use-the-plugin-to-resize-blog-images

    Example: If you’re trying to resize blog images, you need to add this code to functions.php under Appearance menu > Theme Editor:

    add_filter('wp_sir_resize_post_type', function($post_types){
    $post_types = (array) $post_types;
    $post_types[] = 'post';
    
    return $post_types;
    
    });

    Best regards,
    Nabil

    Thread Starter Drachsi

    (@drachsi)

    Hi, Thanks for your reply.
    Yes, (for now) What does that mean?
    Where would I add the image size dimensions, for example 1200 x500 and what happens to images submitted that are larger or smaller?

    Thanks in advance.
    Regards
    Drachsi

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @drachsi

    Yes, (for now) What does that mean?

    We’ll add a visual setting in a future release to specify which non-woocommerce images (blog images, etc) to resize so you won’t have to use that code anymore.

    By default, the plugin will use the WordPress built-in sizes (Thumbnail, Medium, and Large) which you can edit under under Settings menu > Media.

    Note that you can also change the plugin settings under Settings menu > Smart Image Resize.

    I hope this helps.

    Regards,
    Nabil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Will this work on a non Woocomerce site?’ is closed to new replies.