• Resolved droonss

    (@droonss)


    Quote from the FAQ:
    “I’m not using WooCommerce, can I use the plugin to fix my images?
    Yes you can!”

    “Does the plugin affect non-product images?
    No! only product images are resized by default. However, you can also enable category images resizing in the plugin settings.”

    Work without woocommerce, but only changes the images of woocommerce products? If I don’t have woocommerce, it means I don’t have images of the goods/ How is that???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi,

    Resizing non-WooCommerce images, such as product or category images, isn’t available as an option that you can toggle through the settings page. However, you can achieve this by adding the following code snippet to your functions.php file or using the Code Snippets plugin:

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


    This code snippet enables resizing for blog images. If you want to resize images attached to some custom post, replace $post_types[] = 'post'; with your custom post name or share a link to custom post page, and I’ll be happy to update the code snippet for you.

    Thread Starter droonss

    (@droonss)

    Cool! Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How is that?’ is closed to new replies.