Okay
  Public Ticket #2525929
WooCommerce Image Sizes
Closed

Comments

  •  3
    Steven started the conversation

    Hello. How do I find out the standard image sizes for WooCommerce in Salient?

  •  8,851
    Tahir replied

    Hey Again,

    This might help: https://docs.woocommerce.com/document/fixing-blurry-product-images/#section-5 . 

    The Salient Theme creates these image sizes only "salient\nectar\helpers\media.php"

    if ( ! function_exists( 'nectar_add_image_sizes' ) ) {
        function nectar_add_image_sizes() {
            add_image_size( 'portfolio-thumb_large', 900, 604, true );
            add_image_size( 'portfolio-thumb', 600, 403, true );
            add_image_size( 'portfolio-thumb_small', 400, 269, true );
            add_image_size( 'portfolio-widget', 100, 100, true );
            add_image_size( 'nectar_small_square', 140, 140, true );
            global $nectar_options;
            $masonry_sizing_type = ( ! empty( $nectar_options['portfolio_masonry_grid_sizing'] ) && $nectar_options['portfolio_masonry_grid_sizing'] === 'photography' ) ? 'photography' : 'default';
            if ( $masonry_sizing_type !== 'photography' ) {
                
                add_image_size( 'wide', 1000, 500, true );
                add_image_size( 'wide_small', 670, 335, true );
                add_image_size( 'regular', 500, 500, true );
                add_image_size( 'regular_small', 350, 350, true );
                add_image_size( 'tall', 500, 1000, true );
                add_image_size( 'wide_tall', 1000, 1000, true );
                add_image_size( 'wide_photography', 900, 600, true );
            } else {
                
                // These three are still needed for meta overlaid masonry blog.
                add_image_size( 'regular', 500, 500, true );
                add_image_size( 'regular_small', 350, 350, true );
                add_image_size( 'wide_tall', 1000, 1000, true );
                add_image_size( 'wide_photography', 900, 600, true );
                add_image_size( 'wide_photography_small', 675, 450, true );
                add_image_size( 'regular_photography', 450, 600, true );
                add_image_size( 'regular_photography_small', 350, 467, true );
                add_image_size( 'wide_tall_photography', 900, 1200, true );
            }
            add_image_size( 'large_featured', 1870, 770, true );
            add_image_size( 'medium_featured', 800, 800, true );
        }
    }
    add_action( 'after_setup_theme', 'nectar_add_image_sizes' );

    Thanks


    ThemeNectar Support Team 

  •  3
    Steven replied

    Thanks Tahir.