WordPress with Cloudflare redirect issue.

If the hosting server has invalid or expired SSL and SSL is set to flexible/full in cloudflare, it is going to cause a redirect loop. The fix is to add below code in wp-config.php file. $_SERVER[‘HTTPS’] = ‘on’;

Disable Woocommerce image cropping

Use below code in functions.php or in your custom plugin add_filter( 'woocommerce_get_image_size_thumbnail', 'ci_theme_override_woocommerce_image_size_thumbnail' ); function ci_theme_override_woocommerce_image_size_thumbnail( $size ) { // Catalog images: specific size...