How to change the font color of the product price of the homepage?

This topic has 9 replies, 3 voices, and was last updated 2 years, 6 months ago ago by Brisden

  • Avatar: Brisden
    Brisden
    Participant
    September 27, 2021 at 10:23

    Hi there.
    How to change the font color of the product price of the homepage?

    Currently it is set to grey. I want to change it to black.

    Image attached for reference.

    Regards
    Developer

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 27, 2021 at 10:38

    Hello,

    Add the next code in Theme Options > Theme custom CSS:

    .content-product .price {
        color: #222;
    }

    Regards

    Avatar: Brisden
    Brisden
    Participant
    September 28, 2021 at 06:59

    .content-product .price {
    color: #222;
    }

    Tried that as per your instruction. Didn’t work.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 28, 2021 at 16:46

    Hello,

    Provide us with WP Dashboard access to your site to check and help you.

    Regards

    Avatar: Brisden
    Brisden
    Participant
    October 1, 2021 at 12:12

    Hi I prefer to do it from my end its a knowledge that helps me along the way as a developer. Appreciate if you just provide me the solution. If i really cant handle it then make sense for me to allow access from your support.

    Here is the detail of the issue. Its the xstore theme with the standard woocommerce plugin. Your theme has a way to change the price font colour via Theme options. But the changes only happens at the single product page level and not on the front home page product catalogue.

    Waiting feedback. Thanks.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 1, 2021 at 17:19

    Hello,

    The mentioned code should work. If you added that but it does not work for you we need WP Dashboard access to your site to check and find the reason why it does not work for you. We can’t tell you why it does not work if we don’t see your settings and your site.

    Regards

    Avatar: Brisden
    Brisden
    Participant
    October 2, 2021 at 05:29

    Hi. Sure. Please refer to the details.

    Regards.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 2, 2021 at 09:41

    Hello,

    I’ve added the code – https://prnt.sc/1uguy2b Clear cache and check, please.

    Regards

    Avatar: Brisden
    Brisden
    Participant
    October 2, 2021 at 12:24

    Okay. It works. Appreciate your support work.
    Thank you

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

The issue related to '‘How to change the font color of the product price of the homepage?’' 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.