Home / Forums / WoodMart support forum / Product page – space in attribute value
Home › Forums › WoodMart support forum › Product page – space in attribute value
Product page – space in attribute value
- This topic has 7 replies, 2 voices, and was last updated 40 minutes ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
December 18, 2025 at 3:36 pm #701534
edgarskairansParticipantHello!
Please advise how to remove the “space” in the attribute values on the product page.
So that it appears as Black, Brass, smoked bronze, Steel, White — instead of the current Black , Brass , smoked bronze , Steel , White.Thanks
Best RegardsAttachments:
You must be logged in to view attached files.December 19, 2025 at 10:21 am #701616
Aizaz Imtiaz AwanKeymasterHello,
Can you please share the page URL so I can further check on your site and give you a possible solution?
Best Regards,
December 19, 2025 at 1:26 pm #701665
edgarskairansParticipant+ url
December 19, 2025 at 2:47 pm #701692
Aizaz Imtiaz AwanKeymasterHello,
This extra space appears because each attribute value is output as a separate inline element, which adds spacing before the comma.
You can fix it with a small CSS adjustment. Please add the following code to Theme Settings > Custom CSS > Global CSS:
/* Remove extra space before commas in product attributes */ .single-product .shop_attributes .wd-attr-term p { word-spacing: -0.25em; }Best Regards,
December 19, 2025 at 2:59 pm #701695
edgarskairansParticipantUnfortunately, this did not help (I added a screenshot).
Thanks
Best RegardsAttachments:
You must be logged in to view attached files.December 20, 2025 at 8:42 am #701769
Aizaz Imtiaz AwanKeymasterHello,
Could you please share a screenshot highlighting the specific space you want to remove?
Best Regards,
December 22, 2025 at 12:10 pm #701932
edgarskairansParticipantHello,
Remove the space before the comma, but keep the space after the comma.
example: value1, value2, value3
Thanks
Best RegardsAttachments:
You must be logged in to view attached files.December 22, 2025 at 2:42 pm #701967
Aizaz Imtiaz AwanKeymasterHello,
The extra space before the comma is not added by CSS. It comes from how outputs attribute terms in the Additional Information tab (HTML/text level), where terms are separated as value , value.
You can see the same on our demo too: https://woodmart.xtemos.com/shop/accessories/smart-watches-wood-edition/
Because of this, CSS cannot reliably remove only the space before the comma while keeping the space after it. So there is no option in theme settings to remove this.
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register