Home Forums WoodMart support forum Product page – space in attribute value

Product page – space in attribute value

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #701534

    edgarskairans
    Participant

    Hello!

    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 Regards

    Attachments:
    You must be logged in to view attached files.
    #701616

    Hello,

    Can you please share the page URL so I can further check on your site and give you a possible solution?

    Best Regards,

    #701665

    edgarskairans
    Participant

    + url

    #701692

    Hello,

    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,

    #701695

    edgarskairans
    Participant

    Unfortunately, this did not help (I added a screenshot).

    Thanks
    Best Regards

    Attachments:
    You must be logged in to view attached files.
    #701769

    Hello,

    Could you please share a screenshot highlighting the specific space you want to remove?

    Best Regards,

    #701932

    edgarskairans
    Participant

    Hello,

    Remove the space before the comma, but keep the space after the comma.

    example: value1, value2, value3

    Thanks
    Best Regards

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)