+ Option 1: (CSS): Beschränken Sie alle WooCommerce-Produkttitel auf nur eine Zeile
.product-block .name {
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
+ Option 2: (PHP): Beschränken Sie alle WooCommerce-Produkttitel auf die maximale Anzahl von Wörtern
add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 );
function shorten_woo_product_title( $title, $id ) {
if ( ! is_singular( array( 'product' ) ) && get_post_type( $id…
