• Resolved mastercavid

    (@mastercavid)


    Hi. I set 1000px with for my images. But is not good for sliders. Can I exclude this function for slider revolution or another slider plugin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    Hi,
    thank you for using our plugin first of all! ??

    There isn’t a direct way to exclude some images from being resized but there is a workaround I can think of: just deactivate RIAU plugin before uploading the images for the slider and then activate it again. This way the images you upload for the slider won’t be resized.

    Best regards,
    Alex

    Thread Starter mastercavid

    (@mastercavid)

    I think we can do it this method.

    For example slider revolution pages links begin with this url

    https://example.com/wp-admin/admin.php?page=revslider&…

    We can make some logic If slug is contain revslider or another things, disable resize image plugin.

    But I am not developer. Can you help me?

    Thread Starter mastercavid

    (@mastercavid)

    I found this alternative method:

    $url = $_SERVER["REQUEST_URI"];
    
    $isItSlide = strpos($url, 'revslider');
    $isItBlog = strpos($url, 'post.php');
    
    if ($isItSlide!==false) {
    	deactivate_plugins( '/resize-image-after-upload/resize-image-after-upload.php' );
    }
    
    if ($isItBlog!==false) {
    	activate_plugins( '/resize-image-after-upload/resize-image-after-upload.php' );
    }
    
    Plugin Author ShortPixel

    (@shortpixel)

    Thank you for sharing your solution! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude for some plugins’ is closed to new replies.