Woocommerce price and name centered - by Tiina

This topic has 8 replies, 3 voices, and was last updated 8 years ago ago by Rose Tyler

  • Avatar: tipadei
    Tiina
    Participant
    November 24, 2016 at 12:30

    How to I get my price and product name centered in woocommerce?

    I have to create custom.css file in child theme, and add this code there:

    .woocommerce .products .product,
    .woocommerce .products .product .price
    {text-align:center}

    But it doesn’t work.

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 24, 2016 at 13:04

    Hello,

    Please provide us with link to the site and wp-admin access in Private Content.
    Here is the video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&list=PLMqMSqDgPNmD4uhGI1IBhr1iaEy81TMff&feature=share&index=1.

    Regards,
    Rose Tyler.

    Avatar: tipadei
    Tiina
    Participant
    November 24, 2016 at 15:16

    Here:

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 24, 2016 at 16:05

    Hello,

    You need rename default.custom.css to custom.css in parent theme and add this code:

    .product-loop.products-grid .product {
        text-align: center;
    }

    Regards,
    Rose Tyler.

    Avatar: tipadei
    Tiina
    Participant
    November 24, 2016 at 18:47

    Thanks! That worked for the store, but is there way to get it to work also on the front page “featured products” and “new products”?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 24, 2016 at 19:16

    Hello,

    Please use this css code:

    .slide-item .product .product-name, .slide-item .product .add-to-container {
       text-align: center;
    }

    Best regards,
    Jack Richardson.

    Avatar: tipadei
    Tiina
    Participant
    November 24, 2016 at 20:27

    Thanks, it’s working!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 25, 2016 at 07:58

    Hello,

    You’re welcome!

    Regards,
    Rose Tyler.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Woocommerce price and name centered’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.