1. Knowledge Base
  2. WooCommerce Product Table
  3. Advanced Usage

How do I change the alignment of the product table’s contents?

WooCommerce Product Table aligns all content to the left, which works fine for most tables.

There’s currently no built-in option to change the alignment, for example to center the text in the table. You can center column text using simple CSS. You can add the following to your theme’s stylesheet or in the Customizer (see Appearance → Customize → Custom CSS):

Center Alignment:

.wc-product-table th, .wc-product-table td {
    text-align: center;
}

Right Alignment:

.wc-product-table th, .wc-product-table td {
    text-align: right;
}

If you need any help with this then we recommend posting a job on Codeable, where pre-approved WordPress experts will bid for the work. We have partnered with them to provide plugin customizations for our customers.

Need professional assistance?
We've partnered with Codeable to provide our customers with expert help if required.
Still need help?
If searching the knowledge base hasn't answered your question, please contact support.

Related Articles