Wie ändere ich die Position des WooCommerce-Vorschaubildes?

Ich versuche, die Position des WooCommerce-Vorschaubildes zu ändern. Ich fand, dass dieser Code helfen kann, die Größe zu ändern:

add_action( 'init', 'yourtheme_woocommerce_image_dimensions', 1 );

/**
 * Define image sizes
 */
function yourtheme_woocommerce_image_dimensions() {
    $catalog = array(
        'width'     => '100',   // px
        'height'    => '100',   // px
        'crop'      => 0
    );

    // Image sizes
    update_option( 'shop_catalog_image_size', $catalog );       // Product category thumbs
}

Ich habe versucht, wie ändern Ernte0 zuarray("center", "bottom") aber es funktioniert nicht:

function yourtheme_woocommerce_image_dimensions() {
    $catalog = array(
    'width'   => '300', // px
    'height'  => '400', // px
    'crop'    => 'array("center", "bottom")'
  );

  // Image sizes
  update_option( 'shop_catalog_image_size', $catalog );     // Product category thumbs
}

Und auch das ohne Erfolg:

if (function_exists( 'add_image_size' )){
  add_image_size( 'shop_catalog', 300, 400, array( 'center', 'bottom' ) );
}

Gibt es sowieso ich kann es ändern?

Vielen Dank

Antworten auf die Frage(2)

Ihre Antwort auf die Frage