• Resolved aoedigi

    (@aoedigi)


    Hello all,

    After an update, all our variant label text is suddenly centered.

    We want it as it was before (where label text was aligned to the left)

    How do we change that back?

    See image for reference: https://imgur.com/a/dJEOINP

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hello @aoedigi ??

    This can be fixed with some custom CSS. Under Appearance > Customize > Additional CSS, you can add the following code:

    .woocommerce div.product form.cart .variations th {
    text-align: left;
    }

    This is how it will look like in the frontend:

    If you’re interested in learning CSS we highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).

    I hope this helps!

    Thread Starter aoedigi

    (@aoedigi)

    Hey Mirko,

    Thank you for the code. It works now.

    However, we wonder why it suddenly changed in the first place?

    Nothing has been done besides updating plugins.

    Hello there,

    we wonder why it suddenly changed in the first place?

    It is difficult to say without checking the site to get more context, for the most part, the reason could be a theme or plugin conflict.

    In case you would like to perform a conflict test, be sure to switch your site to the Storefront theme.
    You can find a more detailed explanation on how to do a conflict test here.`.

    I hope this provides clarity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variant label text centered’ is closed to new replies.