I wonna modify cart-item-data to inline such as:
- color : white
- size : M
I have code below.
Go to woocommerce plugin folder and find folder templates and go to cart folder and find cart.php change table on that file
The general answer is CSS. You need the dd
and dt
elements to be inline instead of block level. Something like this might work:
dl.variation dt, dl.variation dd {
display: inline-block;
}
It might also not work if there is a more specific rule somewhere else in your stylesheets or if something else comes later on in the stylesheets to override this. Impossible for me to say without knowing your theme and WooCommerce setup, but this is a good start.