Show attributes on cart without line break
-
Hi, at the moment attributes selected for variable products are shown on cart and checkout pages with line break, like this:
[attribute 1 name]:
[selected variation]
[attribute 2 name]:
[selected variation]
It takes a lot of space and looks ugly. I want them to be displayed without line break, like this:
[attribute 1 name]: [selected variation]
[attribute 2 name]: [selected variation]
Hello,
As you want to display the attributes in one line as they are currently shown after a line break in different places like cart, checkout etc.
There is no such option to change this behavior. To change this behavior requires customization which is beyond our limitations and support policy.
Best Regards.
I was given this CSS code by WooCommerce representatives:
.woocommerce .product-name .variation dt{
float: left;
margin-right: 5px;
display: block;
}
It does the trick for standard themes, but does not work with Woodmart. So your theme overwrites it somehow. Maybe you can provide some solution based on above mentioned CSS?
Hello,
Thanks for sharing the CSS code but as the CSS code provided by WooCommerce representatives.
I can’t provide you solution based on the upper CSS code. I have tried this code and modifying it but it does not work even on my test site. As I already described you that it requires customization and this is beyond our limitations and support policy.
Best Regards.