Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Remove requirement to crop vendor background image

WCMp Core

Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #115297
      redilson
      Participant

      Hi,

      Is there a way to remove the requirement to crop when vendors adjust their background image? We have many vendors having issues of it getting out of whack, blurry, doesn’t fit, etc. We have a system in place to reduce the size of all uploaded images, so size of the image isn’t a concern.

    • #115341

      Hi,
      Adding this code to the function.php of the current active child theme will provide your vendor the option to skip the cropping :

      add_filter('wcmp_frontend_dash_upload_script_params', 'wcmp_skip_progress_bar');
      function wcmp_skip_progress_bar( $image_script_params ) {
      	$image_script_params['canSkipCrop'] = true;
      return $image_script_params;
      }
      Copy

      Regards,

    • #118208
      redilson
      Participant

      This worked great, thank you!

    • #118242

      Thank you, based on your confirmation we are marking this thread closed.

Viewing 3 reply threads

The topic ‘Remove requirement to crop vendor background image’ is closed to new replies.