We have phased out active development. Read more.
  1. Home
  2. Docs
  3. General
  4. Sizing your images

Sizing your images

Your main coupon archive will look best if your coupon featured images are all the same size. You’ll want to use the image dimensions that match your WordPress theme.

Our sample image dimensions are 794x398. They are being resized by CSS to 384x192.

The image dimensions will vary based on the WordPress theme you are running. This is because the width of your site might be different than ours.

wp_coupons_coupon_panel_image

You can use the wp_coupons_coupon_panel_image filter to change the size of your images on the coupon panels. Below is an example of changing the image sizes on an archive.

add_filter('wp_coupons_coupon_panel_image', function($size) {

    //change image size only on archive
    if(is_archive()) {
        $size = 'medium';
    }

    return $size;
});
Was this article helpful?

Related Articles