• Resolved Simo2606

    (@simo2606)


    Hi!

    I need to modify the woocommerce table of attributes in product sheet, in order to make the th fit to content and not to have white space between th and td, I need a result like in this example:

    Size: S
    Format: 0.7l

    (now is like:

    Size:[space][space][space]S
    Format:[space][space][space]0.7l

    )

    I tried different css modifies, as

    .woocommerce table.shop_attributes th {
        width: 1px;
    }

    but nothing seems to work…

    could anyone help me please?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @simo2606,

    Due to technical reasons, it’s not possible to have all table cells using a different width. To remove the white space between the labels and the values, you’d have to replace the current table with a list.

    On https://stackoverflow.com/a/52541902/12001916, you can find some custom code to replace the table with a list. Please note that this is just a link I found via Google, and that this resource is not affiliated with WooCommerce.com. Therefore, I cannot guarantee if the code snippet works as expected.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Modify table of attributes’ is closed to new replies.